TypeScript/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types

34 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.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.
interface I {
2015-04-13 23:01:57 +02:00
>I : I, Symbol(I, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 0, 0), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 5, 1))
2014-08-15 23:33:16 +02:00
(x: string): string;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.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(callSignaturesThatDifferOnlyByReturnType3.ts, 0, 0), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 5, 1))
2014-08-15 23:33:16 +02:00
(x: string): number;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.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(callSignaturesThatDifferOnlyByReturnType3.ts, 9, 1), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 13, 1))
>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 11, 13), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 15, 13))
2014-08-15 23:33:16 +02:00
(x: string): string;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.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(callSignaturesThatDifferOnlyByReturnType3.ts, 9, 1), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 13, 1))
>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 11, 13), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 15, 13))
2014-08-15 23:33:16 +02:00
(x: string): number;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 16, 5))
2014-08-15 23:33:16 +02:00
}