mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/functionOverloadsOnGenericArity1.ts] ////
|
|
|
|
=== functionOverloadsOnGenericArity1.ts ===
|
|
// overloading on arity not allowed
|
|
interface C {
|
|
>C : Symbol(C, Decl(functionOverloadsOnGenericArity1.ts, 0, 0))
|
|
|
|
f<T>(): string;
|
|
>f : Symbol(C.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(C.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))
|
|
}
|
|
|