mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
569 B
TypeScript
30 lines
569 B
TypeScript
//// [tests/cases/compiler/classExtendsClauseClassMergedWithModuleNotReferingConstructor.ts] ////
|
|
|
|
//// [classExtendsClauseClassMergedWithModuleNotReferingConstructor.ts]
|
|
class A {
|
|
a: number;
|
|
}
|
|
namespace A {
|
|
export var v: string;
|
|
}
|
|
|
|
namespace Foo {
|
|
var A = 1;
|
|
class B extends A {
|
|
b: string;
|
|
}
|
|
}
|
|
|
|
//// [classExtendsClauseClassMergedWithModuleNotReferingConstructor.js]
|
|
"use strict";
|
|
class A {
|
|
}
|
|
(function (A) {
|
|
})(A || (A = {}));
|
|
var Foo;
|
|
(function (Foo) {
|
|
var A = 1;
|
|
class B extends A {
|
|
}
|
|
})(Foo || (Foo = {}));
|