Skip to content

Commit 0bfc9f5

Browse files
authored
Fix a logic-changing typo in getRecursionIdentity (#54321)
1 parent 996aeb6 commit 0bfc9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22990,7 +22990,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2299022990
function getRecursionIdentity(type: Type): object {
2299122991
// Object and array literals are known not to contain recursive references and don't need a recursion identity.
2299222992
if (type.flags & TypeFlags.Object && !isObjectOrArrayLiteralType(type)) {
22993-
if (getObjectFlags(type) && ObjectFlags.Reference && (type as TypeReference).node) {
22993+
if (getObjectFlags(type) & ObjectFlags.Reference && (type as TypeReference).node) {
2299422994
// Deferred type references are tracked through their associated AST node. This gives us finer
2299522995
// granularity than using their associated target because each manifest type reference has a
2299622996
// unique AST node.

0 commit comments

Comments
 (0)