File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 3681
3681
(== 1 (count args))
3682
3682
(record-with-field? (:tag (first argexprs)) (symbol (name f))))
3683
3683
(let [field-access-form (list* (symbol (str " .-" (name f))) args)]
3684
- (analyze env field-access-form))
3684
+ (no-warn ( analyze env field-access-form) ))
3685
3685
{:env env :op :invoke :form form :fn fexpr :args argexprs
3686
3686
:children [:fn :args ]})))))
3687
3687
Original file line number Diff line number Diff line change 2110
2110
a
2111
2111
(recur b 1 )))))))
2112
2112
'any)))
2113
+
2114
+ (deftest test-cljs-3190
2115
+ (let [ws (atom [])]
2116
+ (ana/with-warning-handlers [(collecting-warning-handler ws)]
2117
+ (env/with-compiler-env @test-cenv
2118
+ (analyze (ana/empty-env )
2119
+ '(do
2120
+ (defrecord Foo [a])
2121
+ (:a (->Foo ))))))
2122
+ (is (= 1 (count @ws)))
2123
+ (is (string/starts-with? (first @ws) " Wrong number of args (0) passed to cljs.user/->Foo" ))))
You can’t perform that action at this time.
0 commit comments