File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 28022802 (fn [m]
28032803 (let [m (assoc (or m {})
28042804 :name t
2805+ :tag 'function
28052806 :type true
28062807 :num-fields (count fields)
28072808 :record (= :defrecord* op))]
28102811 {:protocols protocols}
28112812 (source-info tsym env)))))
28122813 {:op op :env env :form form :t t :fields fields :pmasks pmasks
2814+ :tag 'function
28132815 :protocols (disj protocols 'cljs.core/Object)
28142816 :body (analyze (assoc env :locals locals) body)}))
28152817
Original file line number Diff line number Diff line change 998998 (is (= 1 (count @ws)))
999999 (is (string/starts-with? (first @ws) " Cannot infer target type" ))))
10001000
1001- (comment
1002-
1003- (deftest test-cljs-1970-infer-with-cljs-literals
1004- (let [ws (atom [])
1005- res (infer-test-helper
1006- {:forms '[(ns cjls-1970.core )
1007- (set! *warn-on-infer* true )
1008- (defn foo [] (list ))
1009- (defn bar [] (vector ))]
1010- :externs [" src/test/externs/test.js" ]
1011- :warnings ws
1012- :with-core? true })]
1013- (println @ws)
1014- (is (zero? (count @ws)))))
1015-
1016- )
1001+ (deftest test-cljs-1970-infer-with-cljs-literals
1002+ (let [ws (atom [])
1003+ res (infer-test-helper
1004+ {:forms '[(ns cjls-1970.core )
1005+ (set! *warn-on-infer* true )
1006+ (defn foo [] (list ))
1007+ (defn bar [] (vector ))]
1008+ :externs [" src/test/externs/test.js" ]
1009+ :warnings ws
1010+ :with-core? true })]
1011+ (is (zero? (count @ws)))))
You can’t perform that action at this time.
0 commit comments