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 f0bf72f commit b2f4af4Copy full SHA for b2f4af4
src/compiler/checker.ts
@@ -33378,7 +33378,8 @@ namespace ts {
33378
33379
// Modifiers are never allowed on properties except for 'async' on a method declaration
33380
if (prop.modifiers) {
33381
- for (const mod of prop.modifiers) {
+ const modifiers = prop.modifiers;
33382
+ for (const mod of modifiers) {
33383
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
33384
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
33385
}
0 commit comments