2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/mergedModuleDeclarationCodeGen5.ts ===
|
|
|
|
module M.buz.plop {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
|
|
|
>buz : typeof buz
|
|
|
|
>plop : typeof buz.plop
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function doom() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>doom : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function M() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>M : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
module M.buz.plop {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
|
|
|
>buz : typeof buz
|
|
|
|
>plop : typeof M.buz.plop
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function gunk() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>gunk : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function buz() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>buz : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class fudge { }
|
|
|
|
>fudge : fudge
|
|
|
|
|
|
|
|
export enum plop { }
|
|
|
|
>plop : plop
|
|
|
|
|
|
|
|
// Emit these references as follows
|
|
|
|
var v1 = gunk; // gunk
|
2014-08-28 21:52:44 +02:00
|
|
|
>v1 : () => void
|
|
|
|
>gunk : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var v2 = buz; // buz
|
2014-08-28 21:52:44 +02:00
|
|
|
>v2 : () => void
|
|
|
|
>buz : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var v3 = doom; // _plop.doom
|
2014-08-28 21:52:44 +02:00
|
|
|
>v3 : () => void
|
|
|
|
>doom : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var v4 = M; // _plop.M
|
2014-08-28 21:52:44 +02:00
|
|
|
>v4 : () => void
|
|
|
|
>M : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var v5 = fudge; // fudge
|
|
|
|
>v5 : typeof fudge
|
|
|
|
>fudge : typeof fudge
|
|
|
|
|
|
|
|
export var v6 = plop; // plop
|
|
|
|
>v6 : typeof plop
|
|
|
|
>plop : typeof plop
|
|
|
|
}
|