17 lines
376 B
Plaintext
17 lines
376 B
Plaintext
=== 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
|
|
}
|
|
|
|
|