mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
357 B
TypeScript
21 lines
357 B
TypeScript
//// [tests/cases/compiler/extendConstructSignatureInInterface.ts] ////
|
|
|
|
//// [extendConstructSignatureInInterface.ts]
|
|
interface C {
|
|
new(x: number): C;
|
|
}
|
|
|
|
var CStatic: C;
|
|
class E extends CStatic {
|
|
}
|
|
|
|
var e: E = new E(1);
|
|
|
|
|
|
//// [extendConstructSignatureInInterface.js]
|
|
"use strict";
|
|
var CStatic;
|
|
class E extends CStatic {
|
|
}
|
|
var e = new E(1);
|