resolve ^Type hint to canonical class name in var :tag
(def ^String tv ...) left (:tag (meta (var tv))) as the unresolved "String"; the JVM compiler resolves the hint to java.lang.String at def time. Add a resolve-class-hint host seam (built from the existing class-token table) and resolve a def's :tag through it in the analyzer. The reader path (read-string "^String x") stays unresolved, matching the JVM (only the compiler resolves). Closes ^Type-tag-on-var.
This commit is contained in:
parent
d1c2811d13
commit
7db5fabc8d
5 changed files with 32 additions and 9 deletions
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue