Skip to content

Commit eaa057b

Browse files
committed
Fix crash caused by missing case
1 parent f1a0802 commit eaa057b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/checker/checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6801,7 +6801,7 @@ func (c *Checker) checkUnusedClassMembers(node *ast.Node) {
68016801
c.reportUnused(parameter, UnusedKindLocal, NewDiagnosticForNode(parameter.Name(), diagnostics.Property_0_is_declared_but_its_value_is_never_read, ast.SymbolName(parameter.Symbol())))
68026802
}
68036803
}
6804-
case ast.KindIndexSignature, ast.KindSemicolonClassElement, ast.KindClassStaticBlockDeclaration:
6804+
case ast.KindIndexSignature, ast.KindSemicolonClassElement, ast.KindClassStaticBlockDeclaration, ast.KindJSTypeAliasDeclaration:
68056805
// Can't be private
68066806
default:
68076807
panic("Unhandled case in checkUnusedClassMembers")

0 commit comments

Comments
 (0)