27 lines
411 B
Text
27 lines
411 B
Text
=== tests/cases/compiler/testTypings.ts ===
|
|
interface IComparable<T> {
|
|
>IComparable : IComparable<T>
|
|
>T : T
|
|
|
|
compareTo(other: T);
|
|
>compareTo : (other: T) => any
|
|
>other : T
|
|
>T : T
|
|
}
|
|
|
|
declare function sort<U extends IComparable<U>>(items: U[]): U[];
|
|
>sort : <U extends IComparable<U>>(items: U[]) => U[]
|
|
>U : U
|
|
>IComparable : IComparable<T>
|
|
>U : U
|
|
>items : U[]
|
|
>U : U
|
|
>U : U
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|