TypeScript/tests/baselines/reference/castNewObjectBug.types

12 lines
419 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/castNewObjectBug.ts ===
interface Foo { }
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(castNewObjectBug.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var xx = <Foo> new Object();
2015-04-13 23:01:57 +02:00
>xx : Foo, Symbol(xx, Decl(castNewObjectBug.ts, 1, 3))
2014-08-15 23:33:16 +02:00
><Foo> new Object() : Foo
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(castNewObjectBug.ts, 0, 0))
2014-08-15 23:33:16 +02:00
>new Object() : Object
2015-04-13 23:01:57 +02:00
>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
2014-08-15 23:33:16 +02:00