mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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){
|
|
|
|
}
|