TypeScript/tests/baselines/reference/functionOverloadsOnGenericArity1.types

30 lines
437 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== 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
}