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: 254 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
In the following example, I used the name x twice. I understand why
the first x is hidden, but I still don't like the behaviour :-)
A warning whenever you hide a parameter name or variable would be appropriate,
since I don't see the use of it at all.
Original bug ID: 254
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
In the following example, I used the name x twice. I understand why
the first x is hidden, but I still don't like the behaviour :-)
A warning whenever you hide a parameter name or variable would be appropriate,
since I don't see the use of it at all.
/mattias
mattias.waldau@abc.se
let f x x = x
let res = f 10 20
(*
val f : 'a -> 'b -> 'b =
val res : int = 20
*)
The text was updated successfully, but these errors were encountered: