swc/crates/swc_ecma_parser/tests/tsc/interfaceWithConstructSignaturesThatHidesBaseSignature2.ts

10 lines
220 B
TypeScript
Raw Normal View History

interface Foo {
new (): { a: number; b: number };
}
interface Derived extends Foo {
new (): { a: number }; // constructors not checked for conformance like a call signature is
}
var d: Derived;
var r = new d();