We're updating the issue view to help you get more done. 

Keywords with aliased namespaces cannot be read when the namespace is required in a reader conditional

Description

The title in itself isn't entirely true, but I couldn't find a way to describe it succintly (feel free to change).

The issue is easier to demonstrate with an example:

1 2 3 4 (ns foo #?(:cljs (:require [clojure.core :as c]))) #?(:cljs ::c/x)

When reading this in a :clj context, the reader cannot read ::c/x ("Invalid token: ::c/x"), despite the code being correct (presumably).
The same thing happens if the reader conditional branches are :clj and the source is read in a :cljs context.

Environment

None

Status

Assignee

Unassigned

Reporter

Viktor Magyari

Approval

None

Patch

None

Affects versions

Release 1.9

Priority

Minor