hegemonic / catharsis

A JavaScript parser for Google Closure Compiler and JSDoc type expressions.
MIT License
54 stars 14 forks source link

Valid type unions without parentheses can throw an error in JSDoc mode #35

Closed hegemonic closed 9 years ago

hegemonic commented 9 years ago

In JSDoc mode, Catharsis throws an error when it parses the type expression ...string|string[]. In contrast, (...string|string[]) is parsed correctly.