Skip to content

Commit d7dc3f9

Browse files
committed
Remove a redundant check
1 parent 87dbb90 commit d7dc3f9

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
@@ -11056,7 +11056,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1105611056
}
1105711057

1105811058
// always widen a 'unique symbol' type if the type was created for a different declaration and if it isn't accessible
11059-
if (type.flags & TypeFlags.UniqueESSymbol && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
11059+
if (type.flags & TypeFlags.UniqueESSymbol && !declaration.type && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
1106011060
type = esSymbolType;
1106111061
}
1106211062

0 commit comments

Comments
 (0)