mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
530 B
TypeScript
19 lines
530 B
TypeScript
//// [tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithConstructSignaturesThatHidesBaseSignature2.ts] ////
|
|
|
|
//// [interfaceWithConstructSignaturesThatHidesBaseSignature2.ts]
|
|
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();
|
|
|
|
//// [interfaceWithConstructSignaturesThatHidesBaseSignature2.js]
|
|
"use strict";
|
|
var d;
|
|
var r = new d();
|