TypeScript/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types
2015-04-13 14:29:37 -07:00

34 lines
1.6 KiB
Plaintext

=== 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 {
>I : I, Symbol(I, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 0, 0), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 5, 1))
(x: string): string;
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 4, 5))
}
interface I {
>I : I, Symbol(I, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 0, 0), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 5, 1))
(x: string): number;
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 8, 5))
}
interface I2<T> {
>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))
(x: string): string;
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 12, 5))
}
interface I2<T> {
>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))
(x: string): number;
>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 16, 5))
}