mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
13 lines
215 B
TypeScript
13 lines
215 B
TypeScript
// @module: amd
|
|
// @Filename: foo_0.ts
|
|
module foo {
|
|
export var answer = 42;
|
|
}
|
|
|
|
// @Filename: foo_1.ts
|
|
import foo = require("./foo_0");
|
|
// Import should fail. foo_0 not an external module
|
|
if(foo.answer === 42){
|
|
|
|
}
|