mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
15 lines
308 B
TypeScript
15 lines
308 B
TypeScript
// @module: amd
|
|
// @Filename: foo_0.ts
|
|
export class C1 {
|
|
m1 = 42;
|
|
static s1 = true;
|
|
}
|
|
|
|
// @Filename: foo_1.ts
|
|
import c1 = require('./foo_0'); // Makes this an external module
|
|
var answer = 42; // No exports
|
|
|
|
// @Filename: foo_2.ts
|
|
import foo = require("./foo_1");
|
|
var x = foo; // Cause a runtime dependency
|