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: 4970 Reporter: turpin Status: closed (set by @garrigue on 2010-02-04T09:10:27Z) Resolution: fixed Priority: normal Severity: tweak Version: 3.11.0 Fixed in version: 3.11.2+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
The following error seems surprising to me. The error message at least is perfectible. In fact, I even expected the x to be still visible as a field (thus making this example legal) but maybe this would bee too confusing.
class c = object
val mutable x = ()
method set = let x = () in x <- x
end;;
Error: Unbound instance variable x
The text was updated successfully, but these errors were encountered:
Original bug ID: 4970
Reporter: turpin
Status: closed (set by @garrigue on 2010-02-04T09:10:27Z)
Resolution: fixed
Priority: normal
Severity: tweak
Version: 3.11.0
Fixed in version: 3.11.2+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
The following error seems surprising to me. The error message at least is perfectible. In fact, I even expected the x to be still visible as a field (thus making this example legal) but maybe this would bee too confusing.
class c = object
val mutable x = ()
method set = let x = () in x <- x
end;;
Error: Unbound instance variable x
The text was updated successfully, but these errors were encountered: