TypeScript/tests/baselines/reference/specializedSignatureInInterface.types

19 lines
254 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/specializedSignatureInInterface.ts ===
interface A {
>A : A
2014-08-15 23:33:16 +02:00
(key:string):void;
>key : string
2014-08-15 23:33:16 +02:00
}
interface B extends A {
>B : B
>A : A
2014-08-15 23:33:16 +02:00
(key:'foo'):string;
>key : 'foo'
2014-08-15 23:33:16 +02:00
(key:'bar'):string;
>key : 'bar'
2014-08-15 23:33:16 +02:00
}