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: 42 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
The following interaction with the environment manifests a bug in Ocaml 2.99
on Windows NT :
let f : unit -> [A|B] = function () -> `A;;
val f : unit -> [A|B] =
let x = match f() with A->2 | B->3 | `C->4;;
Uncaught exception: Not_found
I was expecting to get a warning about the useless match clause (`C) and for
x to be bound to 2. Instead, I get the weird exception and I get kicked out
of the Ocaml environment and back to the shell prompt.
The following interaction with
the environment manifests a bug in Ocaml 2.99 on Windows NT
:
# let f : unit -> [`A|`B] = function () -> `A;; val f
: unit -> [`A|`B] = <fun> # let x = match f() with `A->2 |
`B->3 | `C->4;; Uncaught exception: Not_found
I was expecting to get a warning about the useless
match clause (`C) and for x to be bound to 2. Instead, I get the weird
exception and I get kicked out of the Ocaml environment and back to the shell
prompt.
The text was updated successfully, but these errors were encountered:
This bug is already corrected in the CVS version.
There were a number of bad variant bugs in ocaml-2.99, so you have better
wait for ocaml-3.00 if you intend to heavily use them.
Original bug ID: 42
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
The following interaction with the environment manifests a bug in Ocaml 2.99
on Windows NT :
let f : unit -> [
A|
B] = function () -> `A;;val f : unit -> [
A|
B] =let x = match f() with
A->2 |
B->3 | `C->4;;Uncaught exception: Not_found
I was expecting to get a warning about the useless match clause (`C) and for
x to be bound to 2. Instead, I get the weird exception and I get kicked out
of the Ocaml environment and back to the shell prompt.
val f : unit -> [`A|`B] = <fun>
# let x = match f() with `A->2 | `B->3 | `C->4;;
Uncaught exception: Not_found
The text was updated successfully, but these errors were encountered: