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

16 lines
226 B
TypeScript
Raw Normal View History

// @module: amd
// @Filename: foo_0.ts
function foo() {
return "test";
}
module foo {
export var answer = 42;
}
export = foo;
// @Filename: foo_1.ts
import foo = require("./foo_0");
if(foo.answer === 42){
var x = foo();
}