19 lines
254 B
Plaintext
19 lines
254 B
Plaintext
|
=== tests/cases/compiler/specializedSignatureInInterface.ts ===
|
||
|
interface A {
|
||
|
>A : A
|
||
|
|
||
|
(key:string):void;
|
||
|
>key : string
|
||
|
}
|
||
|
|
||
|
interface B extends A {
|
||
|
>B : B
|
||
|
>A : A
|
||
|
|
||
|
(key:'foo'):string;
|
||
|
>key : 'foo'
|
||
|
|
||
|
(key:'bar'):string;
|
||
|
>key : 'bar'
|
||
|
}
|