Skip to content

Commit 0a506ac

Browse files
committed
Backing off yet more
1 parent e9b8606 commit 0a506ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/checker.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -18287,12 +18287,12 @@ namespace ts {
1828718287
// identity is some object that is common to instantiations of the type with the same origin.
1828818288
function getRecursionIdentity(type: Type): object | undefined {
1828918289
if (type.flags & TypeFlags.Object && !isObjectOrArrayLiteralType(type)) {
18290-
if (getObjectFlags(type) && ObjectFlags.Reference && (type as TypeReference).node) {
18291-
// Deferred type references are tracked through their associated AST node. This gives us finer
18292-
// granularity than using their associated target because each manifest type reference has a
18293-
// unique AST node.
18294-
return (type as TypeReference).node;
18295-
}
18290+
// if (getObjectFlags(type) && ObjectFlags.Reference && (type as TypeReference).node) {
18291+
// // Deferred type references are tracked through their associated AST node. This gives us finer
18292+
// // granularity than using their associated target because each manifest type reference has a
18293+
// // unique AST node.
18294+
// return (type as TypeReference).node;
18295+
// }
1829618296
if (type.symbol && !(getObjectFlags(type) & ObjectFlags.Anonymous && type.symbol.flags & SymbolFlags.Class)) {
1829718297
// We track all object types that have an associated symbol (representing the origin of the type), but
1829818298
// exclude the static side of classes from this check since it shares its symbol with the instance side.

0 commit comments

Comments
 (0)