Files
tsgo/testdata/baselines/reference/submodule/compiler/cloduleWithDuplicateMember1.js

38 lines
659 B
TypeScript

//// [tests/cases/compiler/cloduleWithDuplicateMember1.ts] ////
//// [cloduleWithDuplicateMember1.ts]
class C {
get x() { return 1; }
static get x() {
return '';
}
static foo() { }
}
namespace C {
export var x = 1;
}
namespace C {
export function foo() { }
export function x() { }
}
//// [cloduleWithDuplicateMember1.js]
"use strict";
class C {
get x() { return 1; }
static get x() {
return '';
}
static foo() { }
}
(function (C) {
C.x = 1;
})(C || (C = {}));
(function (C) {
function foo() { }
C.foo = foo;
function x() { }
C.x = x;
})(C || (C = {}));