5 lines
109 B
TypeScript
5 lines
109 B
TypeScript
|
interface I<T> {
|
||
|
new <U extends T>(u: U): U;
|
||
|
}
|
||
|
var i: I<string>;
|
||
|
var y = new i(""); // y should be string
|