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: 5342 Reporter: elnatan Assigned to:@garrigue Status: closed (set by @garrigue on 2011-12-14T09:22:01Z) Resolution: fixed Priority: normal Severity: minor Version: 3.12.0 Fixed in version: 3.13.0+dev Category: ~DO NOT USE (was: OCaml general) Monitored by:@ygrek
Bug description
An optional argument that is followed by labeled arguments but by no anonymous arguments cannot be erased, but no warning is issued.
let f ?x ~y = x,y;;
val f : ?x:'a -> y:'b -> 'a option * 'b =
f ~y:();;
: ?x:'a -> 'a option * unit =
The text was updated successfully, but these errors were encountered:
Also, when warning 6 ('labels were omitted in the application of this function.') is treated as an error, it would helpful to have the unerasable optional argument warning when an optional argument is followed by only labeled arguments.
Original bug ID: 5342
Reporter: elnatan
Assigned to: @garrigue
Status: closed (set by @garrigue on 2011-12-14T09:22:01Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.0
Fixed in version: 3.13.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @ygrek
Bug description
An optional argument that is followed by labeled arguments but by no anonymous arguments cannot be erased, but no warning is issued.
let f ?x ~y = x,y;;
val f : ?x:'a -> y:'b -> 'a option * 'b =
f ~y:();;
The text was updated successfully, but these errors were encountered: