File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1600
1600
(get-in env [:locals sym]))
1601
1601
[sym tag])))))))
1602
1602
1603
+ (declare specials )
1604
+
1603
1605
(defn- type-check-induced-tag
1604
1606
" Look for a type-check-induced tag when the test expression is the use of
1605
1607
instance? on a local, as in (instance? UUID x) or implements? on a local, as
1606
1608
in (implements? ICounted x)."
1607
1609
[env test]
1608
1610
(when (and (list? test)
1609
1611
(== 3 (count test))
1610
- (every? symbol? test))
1612
+ (every? symbol? test)
1613
+ (not (contains? specials (first test))))
1611
1614
(let [analyzed-fn (no-warn (analyze (assoc env :context :expr ) (first test)))]
1612
1615
(when (= :var (:op analyzed-fn))
1613
1616
(when ('#{cljs.core/instance? cljs.core/implements?} (:name analyzed-fn))
You can’t perform that action at this time.
0 commit comments