2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts ===
|
|
|
|
module my.data.foo {
|
2015-04-13 23:01:57 +02:00
|
|
|
>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen2.ts, 2, 1))
|
|
|
|
>data : typeof data, Symbol(data, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 10), Decl(mergedModuleDeclarationCodeGen2.ts, 3, 10))
|
|
|
|
>foo : typeof foo, Symbol(foo, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 15))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function buz() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>buz : () => void, Symbol(buz, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 20))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
module my.data {
|
2015-04-13 23:01:57 +02:00
|
|
|
>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen2.ts, 2, 1))
|
|
|
|
>data : typeof my.data, Symbol(data, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 10), Decl(mergedModuleDeclarationCodeGen2.ts, 3, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function data(my) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>data : (my: any) => void, Symbol(data, Decl(mergedModuleDeclarationCodeGen2.ts, 3, 16))
|
|
|
|
>my : any, Symbol(my, Decl(mergedModuleDeclarationCodeGen2.ts, 4, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo.buz();
|
|
|
|
>foo.buz() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo.buz : () => void, Symbol(foo.buz, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 20))
|
|
|
|
>foo : typeof foo, Symbol(foo, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 15))
|
|
|
|
>buz : () => void, Symbol(foo.buz, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 20))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|