26 lines
495 B
Text
26 lines
495 B
Text
=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithConstructSignaturesThatHidesBaseSignature.ts ===
|
|
interface Foo {
|
|
>Foo : Foo
|
|
|
|
new (): { a: number };
|
|
>a : number
|
|
}
|
|
|
|
interface Derived extends Foo {
|
|
>Derived : Derived
|
|
>Foo : Foo
|
|
|
|
new (): { a: number; b: number };
|
|
>a : number
|
|
>b : number
|
|
}
|
|
|
|
var d: Derived;
|
|
>d : Derived
|
|
>Derived : Derived
|
|
|
|
var r = new d();
|
|
>r : { a: number; b: number; }
|
|
>new d() : { a: number; b: number; }
|
|
>d : Derived
|
|
|