=== tests/cases/compiler/moduleElementsInWrongContext2.ts ===
function blah () {
>blah : () => void

    module M { }
>M : any

    export namespace N {
>N : any

        export interface I { }
>I : I
    }

    namespace Q.K { }
>Q : any
>K : any

    declare module "ambient" {

    }

    export = M;
>M : any

    var v;
>v : any

    function foo() { }
>foo : () => void

    export * from "ambient";
    export { foo };
>foo : () => void

    export { baz as b } from "ambient";
>baz : any
>b : any

    export default v;
>v : any

    export default class C { }
>C : C

    export function bee() { }
>bee : () => void

    import I = M;
>I : any
>M : any

    import I2 = require("foo");
>I2 : any

    import * as Foo from "ambient";
>Foo : any

    import bar from "ambient";
>bar : any

    import { baz } from "ambient";
>baz : any

    import "ambient";
}

