Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004970OCamlOCaml generalpublic2010-02-04 09:252010-02-04 10:10
Reporterturpin 
Assigned To 
PrioritynormalSeveritytweakReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.0 
Target VersionFixed in Version3.11.2+dev 
Summary0004970: instance variables masked by values
DescriptionThe 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
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005238)
garrigue (manager)
2010-02-04 10:10

Fixed the error message.
Indeed this was a bad example of reusing an error message for a different problem...

- Issue History
Date Modified Username Field Change
2010-02-04 09:25 turpin New Issue
2010-02-04 10:10 garrigue Note Added: 0005238
2010-02-04 10:10 garrigue Status new => closed
2010-02-04 10:10 garrigue Resolution open => fixed
2010-02-04 10:10 garrigue Fixed in Version => 3.11.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker