TypeScript/tests/baselines/reference/identicalCallSignatures3.types

34 lines
1.4 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts ===
// Normally it is an error to have multiple overloads with identical signatures in a single type declaration.
// Here the multiple overloads come from multiple merged declarations, so we do not report errors.
interface I {
2015-04-13 23:01:57 +02:00
>I : I, Symbol(I, Decl(identicalCallSignatures3.ts, 0, 0), Decl(identicalCallSignatures3.ts, 5, 1))
2014-08-15 23:33:16 +02:00
(x: number): string;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 4, 5))
2014-08-15 23:33:16 +02:00
}
interface I {
2015-04-13 23:01:57 +02:00
>I : I, Symbol(I, Decl(identicalCallSignatures3.ts, 0, 0), Decl(identicalCallSignatures3.ts, 5, 1))
2014-08-15 23:33:16 +02:00
(x: number): string;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 8, 5))
2014-08-15 23:33:16 +02:00
}
interface I2<T> {
2015-04-13 23:01:57 +02:00
>I2 : I2<T>, Symbol(I2, Decl(identicalCallSignatures3.ts, 9, 1), Decl(identicalCallSignatures3.ts, 13, 1))
>T : T, Symbol(T, Decl(identicalCallSignatures3.ts, 11, 13), Decl(identicalCallSignatures3.ts, 15, 13))
2014-08-15 23:33:16 +02:00
(x: number): string;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 12, 5))
2014-08-15 23:33:16 +02:00
}
interface I2<T> {
2015-04-13 23:01:57 +02:00
>I2 : I2<T>, Symbol(I2, Decl(identicalCallSignatures3.ts, 9, 1), Decl(identicalCallSignatures3.ts, 13, 1))
>T : T, Symbol(T, Decl(identicalCallSignatures3.ts, 11, 13), Decl(identicalCallSignatures3.ts, 15, 13))
2014-08-15 23:33:16 +02:00
(x: number): string;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 16, 5))
2014-08-15 23:33:16 +02:00
}