mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +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){
|
||
|
|
||
|
}
|