TypeScript/tests/baselines/reference/genericConstructSignatureInInterface.types

21 lines
258 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/genericConstructSignatureInInterface.ts ===
interface C {
>C : C
2014-08-15 23:33:16 +02:00
new <T>(x: T);
>T : T
>x : T
>T : T
2014-08-15 23:33:16 +02:00
}
var v: C;
>v : C
>C : C
2014-08-15 23:33:16 +02:00
var r = new v<number>(1);
>r : any
2014-08-15 23:33:16 +02:00
>new v<number>(1) : any
>v : C
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00