Closed ikappaki closed 7 months ago
Hi,
the top level macroexpansion of a var appears to be resolving it rather than returning the var.
To reproduce,
basilisp.user=> (var basilisp.core/inc) #'basilisp.core/inc
basilisp.user=> (type (eval (macroexpand '(var basilisp.core/inc)))) <class 'function'>
contrast with Clojure ``` clojure user> (var clojure.core/inc) #'clojure.core/inc user> (type (eval (macroexpand '(var clojure.core/inc)))) clojure.lang.Var
I had a look at the analyzer/compiler, but I couldn't figured out how to correct it.
Thanks
Hi,
the top level macroexpansion of a var appears to be resolving it rather than returning the var.
To reproduce,
basilisp.user=> (type (eval (macroexpand '(var basilisp.core/inc)))) <class 'function'>
I had a look at the analyzer/compiler, but I couldn't figured out how to correct it.
Thanks