Skip to content

Commit 380c082

Browse files
committed
Remove empty branch
1 parent d40b1d0 commit 380c082

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/compiler/binder.ts

-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ import {
156156
isEmptyObjectLiteral,
157157
isEntityNameExpression,
158158
isEnumConst,
159-
isEnumLiteralExpression,
160159
isExportAssignment,
161160
isExportDeclaration,
162161
isExportsIdentifier,
@@ -824,9 +823,6 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
824823
if (isNamedDeclaration(node)) {
825824
setParent(node.name, node);
826825
}
827-
if (isEnumLiteralExpression(node) && symbol.valueDeclaration === node.parent) {
828-
// This is not a real redeclaration, but is in fact two separate meanings for the same symbol.
829-
}
830826
// Report errors every position with duplicate declaration
831827
// Report errors on previous encountered declarations
832828
let message = symbol.flags & SymbolFlags.BlockScopedVariable

0 commit comments

Comments
 (0)