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

12 lines
238 B
TypeScript
Raw Normal View History

// @module: amd
// @Filename: foo_0.ts
export enum E1 {
A,B,C
}
// @Filename: foo_1.ts
import foo = require("./foo_0");
if(foo.E1.A === 0){
// Should cause runtime import - interesting optimization possibility, as gets inlined to 0.
}