quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.54k stars 192 forks source link

incorrect parse of '(): RT<T>=> { throw ''; }' #1169

Closed strager closed 9 months ago

strager commented 9 months ago

The following TypeScript code is parsed incorrectly by quick-lint-js:

class RT<X> {}
class T {}

let f = (): RT<T>=> { throw ''; };
vegerot commented 9 months ago

I accept this task. (I’m an expert on parsing > btw)