mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
520 B
TypeScript
23 lines
520 B
TypeScript
//// [tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsShadowedConstructorFunction.ts] ////
|
|
|
|
//// [classExtendsShadowedConstructorFunction.ts]
|
|
class C { foo: string; }
|
|
|
|
namespace M {
|
|
var C = 1;
|
|
class D extends C { // error, C must evaluate to constructor function
|
|
bar: string;
|
|
}
|
|
}
|
|
|
|
//// [classExtendsShadowedConstructorFunction.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
var M;
|
|
(function (M) {
|
|
var C = 1;
|
|
class D extends C {
|
|
}
|
|
})(M || (M = {}));
|