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: 138 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
val g : ?opt:Uncaught exception: File "typing/printtyp.ml", line 0,
characters
6494-6506: Assertion failed
The same message was printed when trying to compile the code.
Perhaps a better error message could be used?
Indeed. Due to the structure of the compiler, it would difficult to
get the correct type printed, but I changed it so as to have partial type
information (and no error).
let g ?opt () = f opt;;
val g : ?opt: -> unit -> string
The only way to have the system print the correct type is to write a module
signature... (A type constraint would not do, since it propagates
abbreviation.)
Original bug ID: 138
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name:
Version: Objective Caml 3.00
OS:
Submission from: orion.kurims.kyoto-u.ac.jp (130.54.16.5)
Submitted by: garrigue
~# ocaml
Objective Caml version 3.00
type t = string option;;
type t = string option
let (f : t -> string) = function
val f : t -> string =
let g ?opt () = f opt;;
val g : ?opt:Uncaught exception: File "typing/printtyp.ml", line 0, characters
6494-6506: Assertion failed
The same message was printed when trying to compile the code.
Perhaps a better error message could be used?
The text was updated successfully, but these errors were encountered: