-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationHelp WantedYou can do thisYou can do this
Milestone
Description
Bug Report
π Version & Regression Information
ts stable & nightly
β― Playground Link
π» Code
type A = 1 | 2;
/** {@link A} */
// ^? type A = 1 | 2;
switch (0 as A) {
/** {@link A} */
// ^? No definition found for 'A'
case 1:
case 2:
}π Actual behavior
/** {@link A} */ to find the type of A in both cases
π Expected behavior
/** {@link A} */ cannot find type A when placed above a switch case
--
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationHelp WantedYou can do thisYou can do this
