File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- {:paths [" src" " resources" ] }
1
+ {:paths [" src" " resources" ]
2
+ :deps {local/typed.cljc.analyzer {:local/root " ../cljc.analyzer" }}
3
+ }
Original file line number Diff line number Diff line change 259
259
~(expand-with-open (subvec bindings 2 ) body)
260
260
(finally
261
261
(. ~(bindings 0 ) close))))
262
- :else (throw (IllegalArgumentException. " with-open only allows Symbols in bindings" ))))]
262
+ :else (throw (#?(:cljr ArgumentException. :default IllegalArgumentException.) " with-open only allows Symbols in bindings" ))))]
263
263
(expand-with-open bindings body)))
264
264
265
265
(defmethod -expand-macro 'clojure.core /assert
286
286
(if (seq? (first sigs))
287
287
sigs
288
288
; ; Assume single arity syntax
289
- (throw (IllegalArgumentException.
289
+ (throw (#?(:cljr ArgumentException. :default IllegalArgumentException.)
290
290
(if (seq sigs)
291
291
(str " Parameter declaration "
292
292
(first sigs)
Original file line number Diff line number Diff line change 9
9
(ns ^:no-doc typed.cljc.runtime.env-utils-annotations
10
10
(:require [typed.clojure :as t]
11
11
[typed.cljc.runtime.env-utils :as env-utils])
12
- (:import [java.lang.ref SoftReference]))
12
+ (:import #?( :clojure [java.lang.ref SoftReference]) ))
13
13
14
14
(t/defalias env-utils /InvalidationId t /Str )
15
15
(t/defalias env-utils /ForcedType
Original file line number Diff line number Diff line change 41
41
(apply hash-map args))
42
42
this-ns (ns-name *ns*)]
43
43
`(clojure.core.typed/tc-ignore
44
- (let [nme# (or (when-some [^Class c# (ns-resolve '~this-ns '~nme)]
44
+ (let [nme# (or (when-some [^#?( :cljr Type :default Class) c# (ns-resolve '~this-ns '~nme)]
45
45
(when (class? c#)
46
- (-> c# . getName symbol)))
46
+ (-> c# #?( :cljr .FullName :default . getName) symbol)))
47
47
(throw (ex-info (str " Could not resolve class: " '~nme) {:class-name '~nme})))]
48
48
; ; TODO runtime env
49
49
#_
You can’t perform that action at this time.
0 commit comments