|
2054 | 2054 | (is #(= '#{([this] [this x] [this x y])} (set (map :arglists (vals sigs)))))
|
2055 | 2055 | (is #(= '#{"foo fn" "bar fn" "baz fn"} (set (map :doc (vals sigs)))))))
|
2056 | 2056 |
|
| 2057 | +(deftest test-cljs-3133 |
| 2058 | + (is (= (ana/no-warn |
| 2059 | + (env/with-compiler-env test-cenv |
| 2060 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (keyword? x) x nil)))))) |
| 2061 | + '#{cljs.core/Keyword clj-nil})) |
| 2062 | + (is (= (ana/no-warn |
| 2063 | + (env/with-compiler-env test-cenv |
| 2064 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (simple-keyword? x) x nil)))))) |
| 2065 | + '#{cljs.core/Keyword clj-nil})) |
| 2066 | + (is (= (ana/no-warn |
| 2067 | + (env/with-compiler-env test-cenv |
| 2068 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (qualified-keyword? x) x nil)))))) |
| 2069 | + '#{cljs.core/Keyword clj-nil})) |
| 2070 | + (is (= (ana/no-warn |
| 2071 | + (env/with-compiler-env test-cenv |
| 2072 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (symbol? x) x nil)))))) |
| 2073 | + '#{cljs.core/Symbol clj-nil})) |
| 2074 | + (is (= (ana/no-warn |
| 2075 | + (env/with-compiler-env test-cenv |
| 2076 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (simple-symbol? x) x nil)))))) |
| 2077 | + '#{cljs.core/Symbol clj-nil})) |
| 2078 | + (is (= (ana/no-warn |
| 2079 | + (env/with-compiler-env test-cenv |
| 2080 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (qualified-symbol? x) x nil)))))) |
| 2081 | + '#{cljs.core/Symbol clj-nil})) |
| 2082 | + (is (= (ana/no-warn |
| 2083 | + (env/with-compiler-env test-cenv |
| 2084 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (ident? x) x nil)))))) |
| 2085 | + '#{cljs.core/Keyword cljs.core/Symbol clj-nil})) |
| 2086 | + (is (= (ana/no-warn |
| 2087 | + (env/with-compiler-env test-cenv |
| 2088 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (simple-ident? x) x nil)))))) |
| 2089 | + '#{cljs.core/Keyword cljs.core/Symbol clj-nil})) |
| 2090 | + (is (= (ana/no-warn |
| 2091 | + (env/with-compiler-env test-cenv |
| 2092 | + (:tag (ana/analyze test-env '(let [x ^any []] (if (qualified-ident? x) x nil)))))) |
| 2093 | + '#{cljs.core/Keyword cljs.core/Symbol clj-nil}))) |
0 commit comments