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
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 7334
Reporter: @let-def
Status: acknowledged (set by @shindere on 2017-02-24T15:40:57Z)
Resolution: open
Priority: low
Severity: feature
Version: 4.03.0
Target version: undecided
Category: typing
Bug description
The manual and the manpages say that in "-nolabels" mode,
"Labels cannot be used in applications".
However it seems that only commuting is forbidden, applications using labels that doesn't need to commute are accepted.
I suggest updating the documentation, I can submit a Github PR if people agree on a better wording.
Steps to reproduce
ocaml -nolabels
let f ~x ~y = x;;
f ~x:() ~y:();;
(* no error, no warning *)
f ~y:() ~x:();;
(* Error: The function applied to this argument has type x:'a -> y:'b -> 'a
This argument cannot be applied with label ~y *)
The text was updated successfully, but these errors were encountered: