17 lines
298 B
Text
17 lines
298 B
Text
|
=== tests/cases/compiler/constructorTypeWithTypeParameters.ts ===
|
||
|
declare var X: {
|
||
|
>X : new <T>() => number
|
||
|
|
||
|
new <T>(): number;
|
||
|
>T : T
|
||
|
}
|
||
|
declare var Y: {
|
||
|
>Y : new () => number
|
||
|
|
||
|
new (): number;
|
||
|
}
|
||
|
var anotherVar: new <T>() => number;
|
||
|
>anotherVar : new <T>() => number
|
||
|
>T : T
|
||
|
|