TypeScript/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types
2015-04-15 16:44:20 -07:00

34 lines
610 B
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
(x: string): string;
>x : string
}
interface I {
>I : I
(x: string): number;
>x : string
}
interface I2<T> {
>I2 : I2<T>
>T : T
(x: string): string;
>x : string
}
interface I2<T> {
>I2 : I2<T>
>T : T
(x: string): number;
>x : string
}