//// [moduleAssignmentCompat1.ts]
module A {
    export class C { }
}
module B {
    export class C { }
    class D { }
}

var a: A;
var b: B;

// no error
a = b;
b = a;



//// [moduleAssignmentCompat1.js]
var A;
(function (A) {
    var C = (function () {
        function C() {
        }
        return C;
    }());
    A.C = C;
})(A || (A = {}));
var B;
(function (B) {
    var C = (function () {
        function C() {
        }
        return C;
    }());
    B.C = C;
    var D = (function () {
        function D() {
        }
        return D;
    }());
})(B || (B = {}));
var a;
var b;
// no error
a = b;
b = a;
