I added tests in 099 to check that all binding are correct in Smalltalk globals and all classPools.
It seems that someone is adding global somehow with the wrong class (Association instead of GlobalVar (a subclass of Association).
But #at:put: should do the right thing in SystemDictionaryâ¦
The most likely candidate is Undeclared handling⦠yes, that has to be it. The unknown binding is put into Undeclared as an association and then just moved over, while it should switch the type (depending on if it is a global or a class var).
I will fix that.
as a workaround, you can add the method
emitValue: methodBuilder methodBuilder pushLiteralVariable: self.
I will add for now the workaround⦠I found the place where to fix it, too, but that needs then some testing.
This is now in update #100 Marcus