Externs inference warnings for defrecord fields
Description
Environment
{:deps {org.clojure/clojurescript {:mvn/version "1.10.335"}}}
Attachments
2
- 25 Jun 2018, 01:35 PM
- 25 Jun 2018, 01:26 PM
Activity
Show:
David Nolen June 25, 2018 at 3:23 PM

Mike Fikes June 25, 2018 at 1:35 PM
CLJS-2790-2.patch is identical to the initial patch, but corrects the namespace used in the test.
Completed
Details
Details
Assignee
Reporter

Approval
Accepted
Patch
Code and Test
Priority

Created June 25, 2018 at 12:35 PM
Updated June 25, 2018 at 3:23 PM
Resolved June 25, 2018 at 3:23 PM
src/foo/core.cljs
(ns foo.core) (set! *warn-on-infer* true) (defrecord Foo [a b])
clj -m cljs.main -co '{:infer-externs true}' -c foo.core WARNING: Cannot infer target type in expression (. other533 -a) at line 5 /Users/mfikes/Desktop/infer-warn/src/foo/core.cljs WARNING: Cannot infer target type in expression (. other533 -b) at line 5 /Users/mfikes/Desktop/infer-warn/src/foo/core.cljs
See CLJS-2767