Skip to content

Commit b2f01f5

Browse files
kucerm2mfikes
authored andcommitted
CLJS-2867: Inferred return type of namespace is string
Corrected type inference of the INamed protocol method namespace to {string clj-nil}.
1 parent 7d3b94d commit b2f01f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@
840840
"Protocol for adding a name."
841841
(^string -name [x]
842842
"Returns the name String of x.")
843-
(^string -namespace [x]
843+
( ^{:tag #{string clj-nil}}-namespace [x]
844844
"Returns the namespace String of x."))
845845

846846
(defprotocol IAtom

0 commit comments

Comments
 (0)