We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c3fca commit aca0bb9Copy full SHA for aca0bb9
src/compiler/checker.ts
@@ -33314,7 +33314,7 @@ namespace ts {
33314
33315
// Modifiers are never allowed on properties except for 'async' on a method declaration
33316
if (prop.modifiers) {
33317
- for (const mod of prop.modifiers!) { // TODO: GH#19955
+ for (const mod of prop.modifiers) {
33318
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
33319
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
33320
}
0 commit comments