23 lines
572 B
Text
23 lines
572 B
Text
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.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 bases.
|
|
|
|
interface Base<T> {
|
|
>Base : Base<T>
|
|
>T : T
|
|
|
|
(x: number): string;
|
|
>x : number
|
|
}
|
|
|
|
interface I extends Base<string>, Base<number> { }
|
|
>I : I
|
|
>Base : Base<T>
|
|
>Base : Base<T>
|
|
|
|
interface I2<T> extends Base<string>, Base<number> { }
|
|
>I2 : I2<T>
|
|
>T : T
|
|
>Base : Base<T>
|
|
>Base : Base<T>
|
|
|