From e0bffe88751ee5ac361d7f3eabc5ea26722e3406 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 18 Apr 2026 18:45:32 -0400 Subject: [PATCH] Formatting --- src/compiler/checker.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f65924877e3..b50a4d26663 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -25312,8 +25312,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // unique AST node. return (type as TypeReference).node!; } - if (type.symbol && objectFlags & (ObjectFlags.Instantiated|ObjectFlags.InstantiatedReference) && - !(objectFlags & ObjectFlags.Anonymous && type.symbol.flags & SymbolFlags.Class)) { + if ( + type.symbol && objectFlags & (ObjectFlags.Instantiated | ObjectFlags.InstantiatedReference) && + !(objectFlags & ObjectFlags.Anonymous && type.symbol.flags & SymbolFlags.Class) + ) { // We track instantiated object types that have a symbol by that symbol (representing the origin of the // type), but exclude the static side of a class since it shares its symbol with the instance side. return type.symbol;