=== tests/cases/compiler/overloadOnGenericArity.ts === interface Test { >Test : Test then(p: string): string; >then : { (p: string): string; (p: string): Date; } >U : U >p : string then(p: string): Date; // Error: Overloads cannot differ only by return type >then : { (p: string): string; (p: string): Date; } >p : string >Date : Date }