mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
367 B
TypeScript
20 lines
367 B
TypeScript
//// [tests/cases/compiler/classExtendsInterfaceInExpression.ts] ////
|
|
|
|
//// [classExtendsInterfaceInExpression.ts]
|
|
interface A {}
|
|
|
|
function factory(a: any): {new(): Object} {
|
|
return null;
|
|
}
|
|
|
|
class C extends factory(A) {}
|
|
|
|
|
|
//// [classExtendsInterfaceInExpression.js]
|
|
"use strict";
|
|
function factory(a) {
|
|
return null;
|
|
}
|
|
class C extends factory(A) {
|
|
}
|