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

10 lines
151 B
TypeScript

interface Foo {
new (): { a: number };
}
interface Derived extends Foo {
new (): { a: number; b: number };
}
var d: Derived;
var r = new d();