18 lines
254 B
Text
18 lines
254 B
Text
=== 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"
|
|
}
|