swc/tests/tsc-references/salsa/moduleExportNestedNamespaces/input.ts/es2015.1.normal/output.js
Donny/강동윤 26944e159d
fix(es/transforms/base): Reimplement hygiene (#2408)
swc_ecma_transforms_base:
 - Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00

25 lines
455 B
JavaScript

// @Filename: use.js
import * as s from './mod';
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @Filename: mod.js
module.exports.n = {
};
module.exports.n.K = function C() {
this.x = 10;
};
module.exports.Classic = class _class {
constructor(){
this.p = 1;
}
};
var k = new s.n.K();
k.x;
var classic1 = new s.Classic();
/** @param {s.n.K} c
@param {s.Classic} classic */ function f(c, classic) {
c.x;
classic.p;
}