30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
=== tests/cases/compiler/functionOverloadsOnGenericArity1.ts ===
|
|
// overloading on arity not allowed
|
|
interface C {
|
|
>C : Symbol(C, Decl(functionOverloadsOnGenericArity1.ts, 0, 0))
|
|
|
|
f<T>(): string;
|
|
>f : Symbol(f, Decl(functionOverloadsOnGenericArity1.ts, 1, 13), Decl(functionOverloadsOnGenericArity1.ts, 2, 18))
|
|
>T : Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 2, 5))
|
|
|
|
f<T, U>(): string;
|
|
>f : Symbol(f, Decl(functionOverloadsOnGenericArity1.ts, 1, 13), Decl(functionOverloadsOnGenericArity1.ts, 2, 18))
|
|
>T : Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 3, 5))
|
|
>U : Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 3, 7))
|
|
|
|
<T>(): string;
|
|
>T : Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 5, 4))
|
|
|
|
<T, U>(): string;
|
|
>T : Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 6, 4))
|
|
>U : Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 6, 6))
|
|
|
|
new <T>(): string;
|
|
>T : Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 8, 7))
|
|
|
|
new <T, U>(): string;
|
|
>T : Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 9, 7))
|
|
>U : Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 9, 9))
|
|
}
|
|
|