Open bioball opened 1 month ago
The result of a const member cannot be late-bound, so its values should be cached for all children in the prototype chain.
const
As an observable effect, this should only result in one trace. Today, this has two.
class MyClass { const prop = trace("hello") res: Int } a = new MyClass { res = 1 } b = (a) { res = 2 }
The result of a
const
member cannot be late-bound, so its values should be cached for all children in the prototype chain.As an observable effect, this should only result in one trace. Today, this has two.