mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
16 lines
226 B
TypeScript
16 lines
226 B
TypeScript
|
// @module: amd
|
||
|
// @Filename: foo_0.ts
|
||
|
function foo() {
|
||
|
return "test";
|
||
|
}
|
||
|
module foo {
|
||
|
export var answer = 42;
|
||
|
}
|
||
|
export = foo;
|
||
|
|
||
|
// @Filename: foo_1.ts
|
||
|
import foo = require("./foo_0");
|
||
|
if(foo.answer === 42){
|
||
|
var x = foo();
|
||
|
}
|