We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b58107 commit f632137Copy full SHA for f632137
1 file changed
src/compiler/checker.ts
@@ -11419,11 +11419,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
11419
reportErrorsFromWidening(declaration, type);
11420
}
11421
11422
- // always widen a 'unique symbol' type if the type was created for a different declaration.
11423
- // if (type.flags & TypeFlags.UniqueESSymbol && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) {
11424
- // type = esSymbolType;
11425
- // }
11426
-
11427
return getWidenedType(type);
11428
11429
0 commit comments