26 lines
366 B
Text
26 lines
366 B
Text
=== tests/cases/compiler/addMoreCallSignaturesToBaseSignature2.ts ===
|
|
interface Foo {
|
|
>Foo : Foo
|
|
|
|
(bar:number): string;
|
|
>bar : number
|
|
}
|
|
|
|
interface Bar extends Foo {
|
|
>Bar : Bar
|
|
>Foo : Foo
|
|
|
|
(key: string): string;
|
|
>key : string
|
|
}
|
|
|
|
var a: Bar;
|
|
>a : Bar
|
|
>Bar : Bar
|
|
|
|
var kitty = a(1);
|
|
>kitty : string
|
|
>a(1) : string
|
|
>a : Bar
|
|
>1 : number
|
|
|