We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87dbb90 commit d7dc3f9Copy full SHA for d7dc3f9
1 file changed
src/compiler/checker.ts
@@ -11056,7 +11056,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
11056
}
11057
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)) {
+ if (type.flags & TypeFlags.UniqueESSymbol && !declaration.type && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
11060
type = esSymbolType;
11061
11062
0 commit comments