TypeScript/tests/baselines/reference/castNewObjectBug.types

12 lines
218 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/castNewObjectBug.ts ===
interface Foo { }
>Foo : Foo
2014-08-15 23:33:16 +02:00
var xx = <Foo> new Object();
>xx : Foo
2014-08-15 23:33:16 +02:00
><Foo> new Object() : Foo
>Foo : Foo
2014-08-15 23:33:16 +02:00
>new Object() : Object
>Object : ObjectConstructor
2014-08-15 23:33:16 +02:00