Debug Failure in invalid JSDoc type expression #47537
Labels
Bug
A bug in TypeScript
Crash
For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Fix Available
A PR has been opened for this issue
Old-Crawler-Detected
Detected by an older crawler (aka "fuzzer") running random TSServer operations on public code.
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
If we have invalid JSDoc like in the example below, we get a
Debug Failure. Did not expect TypeLiteral to have an Identifier in its trivia
when calling service functions e.g.getSyntacticClassifications
on a span containing the bad jsdoc.🔎 Search Terms
debug failure, Did not expect TypeLiteral to have an Identifier in its trivia
🕗 Version & Regression Information
Probably always.
This is a crash.
⏯ Playground Link
Playground link with relevant code
💻 Code
The bad JSDoc is the part inside the param's type expression:
{dot|fulltext}
.🙁 Actual behavior
Crash:
🙂 Expected behavior
No crash.
The text was updated successfully, but these errors were encountered: