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