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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
=== tests/cases/compiler/genericMemberFunction.ts ===
export class BuildError<A, B, C>{
>BuildError : BuildError<A, B, C>
public parent<A, B extends A, C>(): FileWithErrors<A, B, C> {
>parent : <A, B extends A, C>() => FileWithErrors<A, B, C>
return undefined;
>undefined : undefined
}
}
export class FileWithErrors<A, B, C>{
>FileWithErrors : FileWithErrors<A, B, C>
public errors<A, B extends A, C>(): BuildError<A, B, C>[] {
>errors : <A, B extends A, C>() => BuildError<A, B, C>[]
return undefined;
>undefined : undefined
}
public parent<A, B extends A, C>(): BuildResult<A, B, C> {
>parent : <A, B extends A, C>() => BuildResult<A, B, C>
return undefined;
>undefined : undefined
}
}
export class BuildResult<A, B, C>{
>BuildResult : BuildResult<A, B, C>
public merge<A, B extends A, C>(other: BuildResult<A, B, C>): void {
>merge : <A, B extends A, C>(other: BuildResult<A, B, C>) => void
>other : BuildResult<A, B, C>
a.b.c.d.e.f.g = 0;
>a.b.c.d.e.f.g = 0 : 0
>a.b.c.d.e.f.g : any
>a.b.c.d.e.f : any
>a.b.c.d.e : any
>a.b.c.d : any
>a.b.c : any
>a.b : any
>a : any
>b : any
>c : any
>d : any
>e : any
>f : any
>g : any
>0 : 0
removedFiles.forEach(<A, B extends A, C>(each: FileWithErrors<A, B, C>) => {
>removedFiles.forEach(<A, B extends A, C>(each: FileWithErrors<A, B, C>) => { this.removeFile(each); }) : any
>removedFiles.forEach : any
>removedFiles : any
>forEach : any
><A, B extends A, C>(each: FileWithErrors<A, B, C>) => { this.removeFile(each); } : <A, B extends A, C>(each: FileWithErrors<A, B, C>) => void
>each : FileWithErrors<A, B, C>
this.removeFile(each);
>this.removeFile(each) : any
>this.removeFile : any
>this : this
>removeFile : any
>each : FileWithErrors<A, B, C>
});
}
}
|