diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b78490b4c94..ea596c2ac2c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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)); } }