squeak-smalltalk / squeak-object-memory

Issues and assets related to the Squeak object memory.
https://bugs.squeak.org
MIT License
12 stars 1 forks source link

Adding an instVar that is already present on a subclass is not caught #123

Open MariusDoe opened 1 month ago

MariusDoe commented 1 month ago

When adding an instVar on a class that is already present on a superclass, an error is reported.

However, when adding an instVar that is already present on a subclass, no error is reported.

Steps to reproduce

  1. Create a class Dummy
  2. Create a subclass DummySubclass
  3. Add an instVar myVar on DummySubclass
  4. Add an instVar myVar on Dummy

Expected behavior

An error is reported in step 4.

Actual behavior

No error is reported.