-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
RevisitAn issue worth coming back toAn issue worth coming back toSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
TypeScript Version: 2.6.0-dev.20171011
Code
function countDown(n: number): void {
switch (n) {
// @ts-ignore
case 1:
console.log("1");
// intentional fall through
case 0:
console.log("0");
}
}Expected behavior:
Ability to make ts-ignore apply to the --noFallthroughCasesInSwitch error but not to other errors.
Actual behavior:
case "1": would also compile.
timm-gs, jeremyoverman, sunny-g, lmcarreiro, pntgupta and 659 moretrusktr, tonivj5, davoam, cryptoquick, AndersDJohnson and 41 moreido172, davoam, AndersDJohnson, ceoworks, artemjackson and 23 moresoullivaneuh, sam-la-compass, max-b, doberkofler, danisss9 and 16 more
Metadata
Metadata
Assignees
Labels
RevisitAn issue worth coming back toAn issue worth coming back toSuggestionAn idea for TypeScriptAn idea for TypeScript