Join GitHub today
Nonoptional labeled arguments can be passed with '?'. This is confusing #5835
Original bug ID: 5835
I was surprised to find that the following works. I would have expected an error of some kind.
let f ~x = x + 1;;
Is this a bug or a feature?
Comment author: @garrigue
Replaced the error by a warning, as this appears to break lots of code, and this is only a question of principality of inference (there is no semantical problem).
(Also fixed lablgtk, of course; thanks for the report)