Type checker symbols must be transient.
This commit is contained in:
parent
9a50f41af8
commit
96613737c2
1 changed files with 1 additions and 1 deletions
|
@ -2973,7 +2973,7 @@ module ts {
|
||||||
// type literal symbol, and then setting the function symbol as its sole of the type
|
// 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
|
// 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.
|
// 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 = {};
|
||||||
symbol.members[node.kind === SyntaxKind.FunctionType ? "__call" : "__new"] = node.symbol;
|
symbol.members[node.kind === SyntaxKind.FunctionType ? "__call" : "__new"] = node.symbol;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue