Check modifiers on variable like declarations only
This commit is contained in:
parent
941d97c45a
commit
1b8bfc832a
1 changed files with 1 additions and 1 deletions
|
@ -25111,7 +25111,7 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
if (symbol.declarations.length > 1) {
|
||||
if (some(symbol.declarations, d => d !== node && !areDeclarationFlagsIdentical(d, node))) {
|
||||
if (some(symbol.declarations, d => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) {
|
||||
error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue