Issue when expanding aliases for multiple-line input
dundalek opened this issue · 0 comments
dundalek commented
Here's a sample case:
;; Lets define a sample var and access its value
closh $ (def hi "hello")
#'user/hi
closh $ (str hi)
"hello"
closh $ (str
#_=> hi
#_=> )
"hello"
;; Bug: By introducing an alias we will shadow a variable even inside clojure form
;; (Because we process input on per line basis)
closh $ (defalias hi "echo hi")
closh $ (str
#_=> hi
#_=> )
Syntax error compiling at (REPL:0:0).
Unable to resolve symbol: echo in this context