TypeScript/tests/baselines/reference/prototypeOnConstructorFunctions.types

27 lines
542 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== 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