swc/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.ts

18 lines
421 B
TypeScript
Raw Normal View History

// @checkJs: true
// @strict: true
// @declaration: true
// @filename: moduleExportAliasDuplicateAlias.js
// @outdir: out
exports.apply = undefined;
exports.apply = undefined;
function a() { }
exports.apply = a;
exports.apply()
exports.apply = 'ok'
var OK = exports.apply.toUpperCase()
exports.apply = 1
// @filename: test.js
const { apply } = require('./moduleExportAliasDuplicateAlias')
const result = apply.toFixed()