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

17 lines
245 B
TypeScript
Raw Normal View History

// @module: amd
// @Filename: foo_0.ts
enum foo {
red, green, blue
}
module foo {
export var answer = 42;
}
export = foo;
// @Filename: foo_1.ts
import foo = require("./foo_0");
var color: foo;
if(color === foo.green){
color = foo.answer;
}