mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
//// [tests/cases/conformance/externalModules/exportAssignmentMergedModule.ts] ////
|
|
|
|
=== foo_1.ts ===
|
|
import foo = require("./foo_0");
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
|
|
var a: number = foo.a();
|
|
>a : Symbol(a, Decl(foo_1.ts, 1, 3))
|
|
>foo.a : Symbol(foo.a, Decl(foo_0.ts, 0, 15))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>a : Symbol(foo.a, Decl(foo_0.ts, 0, 15))
|
|
|
|
if(!!foo.b){
|
|
>foo.b : Symbol(foo.b, Decl(foo_0.ts, 4, 11))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>b : Symbol(foo.b, Decl(foo_0.ts, 4, 11))
|
|
|
|
foo.Test.answer = foo.c(42);
|
|
>foo.Test.answer : Symbol(foo.Test.answer, Decl(foo_0.ts, 11, 12))
|
|
>foo.Test : Symbol(foo.Test, Decl(foo_0.ts, 9, 2))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>Test : Symbol(foo.Test, Decl(foo_0.ts, 9, 2))
|
|
>answer : Symbol(foo.Test.answer, Decl(foo_0.ts, 11, 12))
|
|
>foo.c : Symbol(foo.c, Decl(foo_0.ts, 6, 15))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>c : Symbol(foo.c, Decl(foo_0.ts, 6, 15))
|
|
}
|
|
=== foo_0.ts ===
|
|
namespace Foo {
|
|
>Foo : Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1))
|
|
|
|
export function a(){
|
|
>a : Symbol(a, Decl(foo_0.ts, 0, 15))
|
|
|
|
return 5;
|
|
}
|
|
export var b = true;
|
|
>b : Symbol(b, Decl(foo_0.ts, 4, 11))
|
|
}
|
|
namespace Foo {
|
|
>Foo : Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1))
|
|
|
|
export function c(a: number){
|
|
>c : Symbol(c, Decl(foo_0.ts, 6, 15))
|
|
>a : Symbol(a, Decl(foo_0.ts, 7, 19))
|
|
|
|
return a;
|
|
>a : Symbol(a, Decl(foo_0.ts, 7, 19))
|
|
}
|
|
export namespace Test {
|
|
>Test : Symbol(Test, Decl(foo_0.ts, 9, 2))
|
|
|
|
export var answer = 42;
|
|
>answer : Symbol(answer, Decl(foo_0.ts, 11, 12))
|
|
}
|
|
}
|
|
export = Foo;
|
|
>Foo : Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1))
|
|
|