Skip to content

Commit 58427c4

Browse files
committed
Use logic for win
1 parent 964fbea commit 58427c4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15971,10 +15971,7 @@ namespace ts {
1597115971

1597215972
// Modifiers cannot appear in property assignments
1597315973
forEach(prop.modifiers, mod => {
15974-
if (mod.kind !== SyntaxKind.AsyncKeyword) {
15975-
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
15976-
}
15977-
else if (prop.kind !== SyntaxKind.MethodDeclaration) {
15974+
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
1597815975
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
1597915976
}
1598015977
});

0 commit comments

Comments
 (0)