Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

Repro:

Place

`
(set! warn-on-infer true)

(defrecord Foo [])
`

anywhere in your source files, compile with {{:infern-externs true}}.

Expected:

Multiple warnings like:
- {{WARNING: Cannot infer target type in expression (. Foo -prototype)}}
- {{WARNING: Cannot infer target type in expression (. other__8838__auto__ -constructor)}}
- {{WARNING: Cannot infer target type in expression (. user/Foo -getBasis)}}

There are also warnings for {{(. cljs.core/List -EMPTY)}}, but this might be unrelated.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-1924 (reported by moxaj)
...