27 lines
462 B
Text
27 lines
462 B
Text
|
=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithCallSignaturesThatHidesBaseSignature2.ts ===
|
||
|
interface Foo {
|
||
|
>Foo : Foo
|
||
|
|
||
|
(): { a: number; b: number };
|
||
|
>a : number
|
||
|
>b : number
|
||
|
}
|
||
|
|
||
|
interface Derived extends Foo { // error
|
||
|
>Derived : Derived
|
||
|
>Foo : Foo
|
||
|
|
||
|
(): { a: number };
|
||
|
>a : number
|
||
|
}
|
||
|
|
||
|
var d: Derived;
|
||
|
>d : Derived
|
||
|
>Derived : Derived
|
||
|
|
||
|
var r = d();
|
||
|
>r : { a: number; }
|
||
|
>d() : { a: number; }
|
||
|
>d : Derived
|
||
|
|