A FogBugz case was opened by bencoman.
Case ID: 11545
Title: class instance variables misbehaving
Status: Work Needed
Category: Bug
Project: _Inbox
Area: Not Spam
Priority: 4 - Would be nice
Milestone: Later
Assigned To: Everyone
URL:
https://pharo.fogbugz.com/default.asp?11545When adding a duplicate class instance variable the error message 'Unknown variable: class' is confusing (well it confused me for about an hour as I was preparing to report this as a different bug based on my misunderstanding.) To reproduce...
Object subclass: #MyTest1
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MyTest'
MyTest1 subclass: #MyTest2
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MyTest'
MyTest1 class
instanceVariableNames: 'MyVar'
MyTest2 class
instanceVariableNames: 'MyVar'
produces error 'Unknown variable' as shown in attached PNG file. Something like 'Duplicate variable' would be more suitable.
In addition, you get the same error if you try to redefine a class-instance-variable, or add a second one. To reproduce...
Object subclass: #MyTest3
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MyTest'
MyTest3 class
instanceVariableNames: 'MyVar'
MyTest3 class
instanceVariableNames: 'MyVar2'
You are subscribed to this case. If you do not want to receive automatic notifications in the future, unsubscribe (
https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=11545) from this case.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker