TypeScript/tests/baselines/reference/prototypeOnConstructorFunctions.types
2015-04-15 16:44:20 -07:00

28 lines
558 B
Plaintext

=== tests/cases/compiler/prototypeOnConstructorFunctions.ts ===
interface I1 {
>I1 : I1
const: new (options?, element?) => any;
>const : new (options?: any, element?: any) => any
>options : any
>element : any
}
var i: I1;
>i : I1
>I1 : I1
i.const.prototype.prop = "yo";
>i.const.prototype.prop = "yo" : string
>i.const.prototype.prop : any
>i.const.prototype : any
>i.const : new (options?: any, element?: any) => any
>i : I1
>const : new (options?: any, element?: any) => any
>prototype : any
>prop : any
>"yo" : string