text: // @filename: function.ts
  var A;
  (function(A) {
      var Point = function Point() {
          return {
              x: 0,
              y: 0
          };
      };
      A.Point = Point;
  })(A || (A = {
  }));
  (function(A) {
      (function(Point) {
          Point.Origin = {
              x: 0,
              y: 0
          };
      })(Point || (Point = {
      }));
  })(A || (A = {
  }));
  // @filename: test.ts
  var fn;
  var fn = A.Point;
  var cl;
  var cl = A.Point();
  var cl = A.Point.Origin; // not expected to be an error.
  // @filename: simple.ts
  var B;
  (function(B) {
      var Point = function Point() {
          return {
              x: 0,
              y: 0
          };
      };
      B.Point = Point;
      (function(Point) {
          Point.Origin = {
              x: 0,
              y: 0
          };
      })(Point || (Point = {
      }));
  })(B || (B = {
  }));
  var fn;
  var fn = B.Point; // not expected to be an error. bug 840000: [corelang] Function of fundule not assignalbe as expected
  var cl;
  var cl = B.Point();
  var cl = B.Point.Origin;
  