squeak-smalltalk / squeak-object-memory

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

[Compiler] False-positive out-of-range error when accessing instvar after shadow #78

Open LinqLover opened 1 year ago

LinqLover commented 1 year ago

Given:

Object subclass: #TestObject
    instanceVariableNames: 'plonk'
    classVariableNames: ''
    poolDictionaries: ''
    category: 'as yet unclassified'

Compiling

doSomething

    [:plonk | plonk].
    ^ plonk

complains "out of scope" for the reference to the instvar in the last line.

I have not yet looked into this issue.