You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 212 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
Merci de votre message à la tribune de discussion de Caml. Toutefois
votre message semble être un rapport d'erreur et donc mal orienté: je
l'envoie à la bonne adresse
While preparing Ocaml courses, I have tried this example :
try (function 1 -> 0) 0 with Match_failure x -> x;;
0
This expression has type string * int * int but is here used with type
int
I understand the type error : (function 1 -> 0) 0 is of type int but x
is of type stringintint.
But why the warning "this pattern-matching is not exhaustive" is not
printed ? and why the example not
matched (0) is printed ?
While preparing Ocaml courses, I have tried this example :
try (function 1 -> 0) 0 with Match_failure x -> x;;
0
This expression has type string * int * int but is here used with type
int
I understand the type error : (function 1 -> 0) 0 is of type int but x
is of type stringintint.
But why the warning "this pattern-matching is not exhaustive" is not
printed ? and why the example not
matched (0) is printed ?
try (function 1 -> 0) 0 with Match_failure x -> x;;
0
This expression has type string * int * int but is here used with type
int
This is a cosmetic bug in the display of warning and error messages.
You can see it better if you set the TERM environment variable to "dumb"
before launching the toplevel.
This will be mostly fixed in the next release. Thanks for the bug report.
Original bug ID: 212
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
Merci de votre message à la tribune de discussion de Caml. Toutefois
votre message semble être un rapport d'erreur et donc mal orienté: je
l'envoie à la bonne adresse
caml-bugs@inria.fr
Merci encore pour votre intérêt à notre langage.
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/
The text was updated successfully, but these errors were encountered: