Check modifiers on variable like declarations only

This commit is contained in:
Sheetal Nandi 2018-11-09 17:13:39 -08:00
parent 941d97c45a
commit 1b8bfc832a

View file

@ -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));
}
}