You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclass<magic>foo$<fn>__17 :AFunction{internalstaticVarclojure_core$inc;internalobjecta;static<magic>foo$<fn>__17(){<magic>foo$<fn>__17.clojure_core$inc =RT.var("clojure.core","inc");}publicoverrideobjectinvoke(){return((IFn)<magic>foo$<fn>__17.clojure_core$inc.getRawRoot()).invoke(this.a);}}publicclass<magic>foo$xx__18 :AFunction{internalstaticVarclojure_core$inc;// <== should not be herestatic<magic>foo$xx__18(){<magic>foo$xx__18.clojure_core$inc = RT.var("clojure.core", "inc");}publicoverrideIFninvokeTyped(objecta){returnnew<magic>foo$<fn>__17
{a=a};}publicoverrideobjectinvoke(objecta){returnthis.invokeTyped(a);}}
The var inc is lifted into the function xx despite the fact that it is only used in its nested function. Lifted keywords are similarly affected. Var and keyword collection should be more like closures.
The text was updated successfully, but these errors were encountered:
Right now the following
compiles into
The var
inc
is lifted into the functionxx
despite the fact that it is only used in its nested function. Lifted keywords are similarly affected. Var and keyword collection should be more like closures.The text was updated successfully, but these errors were encountered: