12 lines
787 B
Text
12 lines
787 B
Text
|
=== tests/cases/compiler/castNewObjectBug.ts ===
|
||
|
interface Foo { }
|
||
|
>Foo : Foo
|
||
|
|
||
|
var xx = <Foo> new Object();
|
||
|
>xx : Foo
|
||
|
><Foo> new Object() : Foo
|
||
|
>Foo : Foo
|
||
|
>new Object() : Object
|
||
|
>Object : { (): any; (value: any): any; new (value?: any): Object; prototype: Object; getPrototypeOf(o: any): any; getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor; getOwnPropertyNames(o: any): string[]; create(o: any, properties?: PropertyDescriptorMap): any; defineProperty(o: any, p: string, attributes: PropertyDescriptor): any; defineProperties(o: any, properties: PropertyDescriptorMap): any; seal(o: any): any; freeze(o: any): any; preventExtensions(o: any): any; isSealed(o: any): boolean; isFrozen(o: any): boolean; isExtensible(o: any): boolean; keys(o: any): string[]; }
|
||
|
|