// @target: es2015
//@module: commonjs
export namespace a {
    export enum weekend {
        Friday,
        Saturday,
        Sunday
    }
}

export namespace c {
    import b = a.weekend;
    export var bVal: b = b.Sunday;
}

var happyFriday = c.b.Friday;