mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Add semicolon to unused class member list
Turns out SemicolonClassElement is a specific kind for semicolons inside a class. Having one of them with --noUnusedLocals on would crash the compiler after the assert added in #21013.
This commit is contained in:
@@ -21030,6 +21030,7 @@ namespace ts {
|
||||
}
|
||||
break;
|
||||
case SyntaxKind.IndexSignature:
|
||||
case SyntaxKind.SemicolonClassElement:
|
||||
// Can't be private
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user