29 lines
437 B
Text
29 lines
437 B
Text
=== tests/cases/compiler/functionOverloadsOnGenericArity1.ts ===
|
|
// overloading on arity not allowed
|
|
interface C {
|
|
>C : C
|
|
|
|
f<T>(): string;
|
|
>f : { <T>(): string; <T, U>(): string; }
|
|
>T : T
|
|
|
|
f<T, U>(): string;
|
|
>f : { <T>(): string; <T, U>(): string; }
|
|
>T : T
|
|
>U : U
|
|
|
|
<T>(): string;
|
|
>T : T
|
|
|
|
<T, U>(): string;
|
|
>T : T
|
|
>U : U
|
|
|
|
new <T>(): string;
|
|
>T : T
|
|
|
|
new <T, U>(): string;
|
|
>T : T
|
|
>U : U
|
|
}
|
|
|