Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when expanding aliases for multiple-line input #152

Open
dundalek opened this issue Aug 21, 2019 · 0 comments
Open

Issue when expanding aliases for multiple-line input #152

dundalek opened this issue Aug 21, 2019 · 0 comments

Comments

@dundalek
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant