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