JSDOC tag @type crashes tsc #29570
Labels
Bug
A bug in TypeScript
Crash
For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Domain: JSDoc
Relates to JSDoc parsing and type generation
Milestone
TypeScript Version: 3.3.0-dev.20190124
Search Terms:
Code
This snippet crashes the compiler:
Stack trace:
A self contained demonstration can be found here: https://github.com/attila-kun/tsc-jsdoc-crash
Or on the Playground (observe exception in the console): https://www.typescriptlang.org/play/#src=function%20Foo()%20%7B%20%7D%0D%0A%2F**%20%40type%20%7B%7B%7D%7D%20**%2F%0D%0AFoo.Bar%20%3D%20null%3B
Expected behavior:
No crash.
Actual behavior:
tsc crashes.
Related Issues:
#17383
#25264
The text was updated successfully, but these errors were encountered: