2014-08-15 23:33:16 +02:00
|
|
|
=== 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
|
2014-08-19 04:56:03 +02:00
|
|
|
>Base : Base<T>
|
|
|
|
>Base : Base<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface I2<T> extends Base<string>, Base<number> { }
|
|
|
|
>I2 : I2<T>
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>Base : Base<T>
|
|
|
|
>Base : Base<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|