File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -11056,7 +11056,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
11056
11056
}
11057
11057
11058
11058
// 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)) {
11060
11060
type = esSymbolType;
11061
11061
}
11062
11062
You can’t perform that action at this time.
0 commit comments