(defconst x 42)
(defclass Foo (Reference)
(defvar x x)
(defn _init ()))
The initializer for Foo.x will be incorrectly written as self.x = x, which does not assign the constant top-level value x to the instance variable.
In this case (where an instance variable shadows a const currently in scope), we should probably make another const with a synthetic name to get around the shadow.
The initializer for
Foo.x
will be incorrectly written asself.x = x
, which does not assign the constant top-level valuex
to the instance variable.In this case (where an instance variable shadows a
const
currently in scope), we should probably make anotherconst
with a synthetic name to get around the shadow.