mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
12 lines
238 B
TypeScript
12 lines
238 B
TypeScript
// @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.
|
|
}
|