2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionOverloadsOnGenericArity1.ts ===
|
|
|
|
// overloading on arity not allowed
|
|
|
|
interface C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(functionOverloadsOnGenericArity1.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f<T>(): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : { <T>(): string; <T, U>(): string; }, Symbol(f, Decl(functionOverloadsOnGenericArity1.ts, 1, 13), Decl(functionOverloadsOnGenericArity1.ts, 2, 18))
|
|
|
|
>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 2, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f<T, U>(): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : { <T>(): string; <T, U>(): string; }, Symbol(f, Decl(functionOverloadsOnGenericArity1.ts, 1, 13), Decl(functionOverloadsOnGenericArity1.ts, 2, 18))
|
|
|
|
>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 3, 5))
|
|
|
|
>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 3, 7))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
<T>(): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 5, 4))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
<T, U>(): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 6, 4))
|
|
|
|
>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 6, 6))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
new <T>(): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 8, 7))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
new <T, U>(): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 9, 7))
|
|
|
|
>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 9, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|