mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
17 lines
245 B
TypeScript
17 lines
245 B
TypeScript
|
// @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;
|
||
|
}
|