We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2682a4a commit 4f9fb9eCopy full SHA for 4f9fb9e
src/main/clojure/cljs/analyzer.cljc
@@ -1102,6 +1102,9 @@
1102
:catch catch
1103
:children [try catch finally]}))
1104
1105
+(defn valid-proto [x]
1106
+ (when (symbol? x) x))
1107
+
1108
(defmethod parse 'def
1109
[op env form name _]
1110
(let [pfn (fn
@@ -1112,7 +1115,7 @@
1112
1115
sym (:sym args)
1113
1116
sym-meta (meta sym)
1114
1117
tag (-> sym meta :tag)
- protocol (-> sym meta :protocol)
1118
+ protocol (-> sym meta :protocol valid-proto)
1119
dynamic (-> sym meta :dynamic)
1120
ns-name (-> env :ns :name)
1121
locals (:locals env)
0 commit comments