The compiler cannot infer the target type of "(. RecordName -prototype)" expressions

Description

Repro:

Place

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_8838auto_ -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.

Environment

None

Activity

Show:

David Nolen April 9, 2020 at 11:58 PM

I believe this was fixed by

Fixed

Details

Assignee

Reporter

Priority

Created February 1, 2017 at 3:18 PM
Updated February 25, 2022 at 5:06 PM
Resolved April 9, 2020 at 11:58 PM