1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
=== tests/cases/compiler/unusedTypeParameters9.ts ===
// clas + interface
class C1<T> { }
>C1 : C1<T>
>T : T
interface C1<T> { a: T; }
>C1 : C1<T>
>T : T
>a : T
>T : T
// interface + class
class C2<T> { a: T; }
>C2 : C2<T>
>T : T
>a : T
>T : T
interface C2<T> { }
>C2 : C2<T>
>T : T
// interfaces
interface C3<T> { a(c: (p: T) => void): void; }
>C3 : C3<T>
>T : T
>a : (c: (p: T) => void) => void
>c : (p: T) => void
>p : T
>T : T
interface C3<T> { b: string; }
>C3 : C3<T>
>T : T
>b : string
interface C3<T> { c: number; }
>C3 : C3<T>
>T : T
>c : number
interface C3<T> { d: boolean; }
>C3 : C3<T>
>T : T
>d : boolean
interface C3<T> { e: any; }
>C3 : C3<T>
>T : T
>e : any
|