From 96613737c240fb73255fe19aeeed27f367f81575 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Fri, 14 Nov 2014 16:49:23 -0800 Subject: [PATCH] Type checker symbols must be transient. --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 82cbd1a8b08..8177db9ee14 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -2973,7 +2973,7 @@ module ts { // type literal symbol, and then setting the function symbol as its sole of the type // literal symbol. To the rest of the checker, this type will be indistinguishable // from an actual type literal type you would have gotten had you used the long form. - var symbol = new Symbol(SymbolFlags.TypeLiteral, "__type"); + var symbol = new Symbol(SymbolFlags.TypeLiteral | SymbolFlags.Transient, "__type"); symbol.members = {}; symbol.members[node.kind === SyntaxKind.FunctionType ? "__call" : "__new"] = node.symbol;