This is a rather minor bug, but it would be helpful if the error message pointed to the class that already defined the inst var.
-
Create a class Foo and a subclass Foosub with an inst var, 'abc'.
Foo ()
FooSub (abc)
-
Recompile Foo with the inst var 'abc'
-
Get an error correctly:
a ImproperOperation occurred (error 2271), The name of the new instance variable, #'abc', would duplicate the name of an existing instance variable in class Foo.
The error message suggests the existing inst var is in class Foo but the existing inst var is in class FooSub.
It would be more correct if the error message identified the class of the existing inst var correctly.
This is a rather minor bug, but it would be helpful if the error message pointed to the class that already defined the inst var.
Create a class Foo and a subclass Foosub with an inst var, 'abc'.
Foo ()
FooSub (abc)
Recompile Foo with the inst var 'abc'
Get an error correctly:
a ImproperOperation occurred (error 2271), The name of the new instance variable, #'abc', would duplicate the name of an existing instance variable in class Foo.The error message suggests the existing inst var is in class Foo but the existing inst var is in class FooSub.
It would be more correct if the error message identified the class of the existing inst var correctly.