File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2432,7 +2432,7 @@ reduces them without incurring seq initialization"
2432
2432
(or (identical? x js/Number.POSITIVE_INFINITY)
2433
2433
(identical? x js/Number.NEGATIVE_INFINITY)))
2434
2434
2435
- (defn contains?
2435
+ (defn ^boolean contains?
2436
2436
" Returns true if key is present in the given collection, otherwise
2437
2437
returns false. Note that for numerically indexed collections like
2438
2438
vectors and arrays, this tests if the numeric key is within the
@@ -11945,7 +11945,7 @@ reduces them without incurring seq initialization"
11945
11945
(fn [x y]
11946
11946
(cond (pred x y) -1 (pred y x) 1 :else 0 )))
11947
11947
11948
- (defn ^boolean special-symbol?
11948
+ (defn special-symbol?
11949
11949
" Returns true if x names a special form"
11950
11950
[x]
11951
11951
(contains?
Original file line number Diff line number Diff line change 310
310
(is (= (env/with-compiler-env test-cenv
311
311
(:tag (analyze test-env '(distinct? 1 ))))
312
312
'boolean))
313
+ (is (= (env/with-compiler-env test-cenv
314
+ (:tag (analyze test-env '(special-symbol? 'foo))))
315
+ 'boolean))
313
316
; ; TODO: we can't infer isa?, we get 'any which is a bit surprising
314
317
; (is (= (env/with-compiler-env test-cenv
315
318
; (:tag (analyze test-env '(isa? ::foo :bar))))
You can’t perform that action at this time.
0 commit comments