27 lines
751 B
Plaintext
27 lines
751 B
Plaintext
=== tests/cases/conformance/externalModules/foo_2.ts ===
|
|
import foo = require("./foo_1");
|
|
>foo : Symbol(foo, Decl(foo_2.ts, 0, 0))
|
|
|
|
var x = foo; // Cause a runtime dependency
|
|
>x : Symbol(x, Decl(foo_2.ts, 1, 3))
|
|
>foo : Symbol(foo, Decl(foo_2.ts, 0, 0))
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
export class C1 {
|
|
>C1 : Symbol(C1, Decl(foo_0.ts, 0, 0))
|
|
|
|
m1 = 42;
|
|
>m1 : Symbol(m1, Decl(foo_0.ts, 0, 17))
|
|
|
|
static s1 = true;
|
|
>s1 : Symbol(C1.s1, Decl(foo_0.ts, 1, 9))
|
|
}
|
|
|
|
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
import c1 = require('./foo_0'); // Makes this an external module
|
|
>c1 : Symbol(c1, Decl(foo_1.ts, 0, 0))
|
|
|
|
var answer = 42; // No exports
|
|
>answer : Symbol(answer, Decl(foo_1.ts, 1, 3))
|
|
|