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

15 lines
284 B
TypeScript
Raw Normal View History

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: axios.js
class Axios {
constructor() {
}
m() { }
}
var axios = new Axios();
// none of the 3 references should have a use-before-def error
axios.m()
module.exports = axios;
module.exports.default = axios;