27 lines
543 B
Plaintext
27 lines
543 B
Plaintext
|
=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithConstructSignaturesThatHidesBaseSignature2.ts ===
|
||
|
interface Foo {
|
||
|
>Foo : Foo
|
||
|
|
||
|
new (): { a: number; b: number };
|
||
|
>a : number
|
||
|
>b : number
|
||
|
}
|
||
|
|
||
|
interface Derived extends Foo {
|
||
|
>Derived : Derived
|
||
|
>Foo : Foo
|
||
|
|
||
|
new (): { a: number }; // constructors not checked for conformance like a call signature is
|
||
|
>a : number
|
||
|
}
|
||
|
|
||
|
var d: Derived;
|
||
|
>d : Derived
|
||
|
>Derived : Derived
|
||
|
|
||
|
var r = new d();
|
||
|
>r : { a: number; }
|
||
|
>new d() : { a: number; }
|
||
|
>d : Derived
|
||
|
|