resolve-var for symbol with dot still wrong

Description

We need to recur on the first segment passing an new additional argument to resolve-var indicating that we should not try to resolve in the current namespace and instead warn.

Environment

None

Activity

Show:

David Nolen April 10, 2020 at 3:25 PM
Edited

See also CLJS-2957

 

Mike Fikes September 5, 2019 at 3:50 PM

For the very last comment, see CLJS-3163.

Thomas Heller September 5, 2019 at 3:13 PM
Edited

Found another case where this is “hiding” other bugs. A single dot is accepted as a symbol and only fails at runtime when it should at least warn or throw during compilation.

This hides another problem with type inference where (if (. response -ok) ...) is trying to resolve the . here.

Mike Fikes February 1, 2019 at 2:18 AM

FWIW, the issue Thomas points to does in fact derail self-hosted ClojureScript, so if we improved warnings around this, that would be good. See

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created December 4, 2013 at 3:09 AM
Updated February 25, 2022 at 5:06 PM
Resolved April 10, 2020 at 6:29 PM