-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 640 moretrusktr, tonivj5, davoam, cryptoquick, AndersDJohnson and 40 moreido172, davoam, AndersDJohnson, ceoworks, artemjackson and 22 moresoullivaneuh, sam-la-compass, max-b, doberkofler, danisss9 and 13 more
Metadata
Metadata
Assignees
Labels
RevisitAn issue worth coming back toAn issue worth coming back toSuggestionAn idea for TypeScriptAn idea for TypeScript