Fork me on GitHub
#cljs-dev
<
2016-04-06
>
pat21:04:15

in jsdoc annotations, is it necessary for union types to be enclosed by parens. The compiler doesn't seem to do this although the closure docs say its necessary

pat21:04:51

I noticed this because for example "@return {(IMap|IFn)}" breaks resolution of one of the protocols.

pat21:04:29

But it works fine if you have {(<fullyqualified>|<otherfullyqualified>)}

dnolen21:04:42

@pat just sounds like a simple bug - patch welcome for that

dnolen21:04:00

the resolution stuff is really simple

pat21:04:50

ok, will try to make tests for resolve-type(s) too

dnolen21:04:56

that would be awesome

pat21:04:01

yeah cool