Skip to content

Commit 1b8bfc8

Browse files
committed
Check modifiers on variable like declarations only
1 parent 941d97c commit 1b8bfc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25111,7 +25111,7 @@ namespace ts {
2511125111
}
2511225112
}
2511325113
if (symbol.declarations.length > 1) {
25114-
if (some(symbol.declarations, d => d !== node && !areDeclarationFlagsIdentical(d, node))) {
25114+
if (some(symbol.declarations, d => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) {
2511525115
error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name));
2511625116
}
2511725117
}

0 commit comments

Comments
 (0)