mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix a logic-changing typo in getRecursionIdentity (#54321)
This commit is contained in:
1 parent
996aeb6aaf
commit
0bfc9f51ec
1 file changed
+1
-1
@@ -22990,7 +22990,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
function getRecursionIdentity(type: Type): object {
|
||||
// Object and array literals are known not to contain recursive references and don't need a recursion identity.
|
||||
if (type.flags & TypeFlags.Object && !isObjectOrArrayLiteralType(type)) {
|
||||
if (getObjectFlags(type) && ObjectFlags.Reference && (type as TypeReference).node) {
|
||||
if (getObjectFlags(type) & ObjectFlags.Reference && (type as TypeReference).node) {
|
||||
// Deferred type references are tracked through their associated AST node. This gives us finer
|
||||
// granularity than using their associated target because each manifest type reference has a
|
||||
// unique AST node.
|
||||
|
||||
Reference in new issue
Block a user