mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
659 B
TypeScript
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 = {}));
|