TypeScript/tests/baselines/reference/prototypeOnConstructorFunctions.types

28 lines
558 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/prototypeOnConstructorFunctions.ts ===
interface I1 {
>I1 : I1
2014-08-15 23:33:16 +02:00
const: new (options?, element?) => any;
>const : new (options?: any, element?: any) => any
>options : any
>element : any
2014-08-15 23:33:16 +02:00
}
var i: I1;
>i : I1
>I1 : I1
2014-08-15 23:33:16 +02:00
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
2014-08-15 23:33:16 +02:00
>prop : any
2015-04-13 21:36:11 +02:00
>"yo" : string
2014-08-15 23:33:16 +02:00