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: 4089 Reporter: craff Status: closed (set by @xavierleroy on 2006-08-19T08:09:06Z) Resolution: not a bug Priority: normal Severity: crash Version: 3.09.2 Category: ~DO NOT USE (was: OCaml general)
Bug description
Just try to compile this:
--------8<--------
external f : ('a -> 'b) -> 'a -> 'b = "%identity"
let _ = print_int (f (+) 1 2)
--------8<--------
Using undocumented features, aren't we?
%identity is a one-argument primitive, and the declaration above makes it look like a two-argument primitive to the compiler.
Original bug ID: 4089
Reporter: craff
Status: closed (set by @xavierleroy on 2006-08-19T08:09:06Z)
Resolution: not a bug
Priority: normal
Severity: crash
Version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)
Bug description
Just try to compile this:
--------8<--------
external f : ('a -> 'b) -> 'a -> 'b = "%identity"
let _ = print_int (f (+) 1 2)
--------8<--------
and you get
$ ocamlc test.ml
The text was updated successfully, but these errors were encountered: