Attempted call to clojure.core/alias appears to be shadowed by local binding to name 'alias'

Description

I discovered this while testing a new linter for Eastwood [1], not by running code, so I don't know what the run-time effect of this issue is, but I would guess it would cause an exception to be thrown if the last line of function recover-ns is ever executed.

Either that or I am really confused by the last line of function recover-ns

[1] https://github.com/jonase/eastwood

Environment

None

Activity

Show:
Stuart Sierra
October 10, 2014, 3:59 PM

Good catch, thanks! Fixed in 122e3d1d

It didn't throw an exception because the local binding of alias was a symbol. When you invoke a symbol, it behaves like keywords or get, so there was no error.

Completed

Assignee

Stuart Sierra

Reporter

Andy Fingerhut

Labels

None

Approval

None

Patch

None

Priority

Major