diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index a8ab4ec7802fc..289e3b5bcb368 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -3816,7 +3816,9 @@ namespace ts { const result = new Type(checker, flags); typeCount++; result.id = typeCount; - typeCatalog.push(result); + if (tracing) { + typeCatalog.push(result); + } return result; }