TypeScript/tests/baselines/reference/exportAssignmentOfGenericType1.js
2015-05-01 10:49:54 -07:00

43 lines
1.2 KiB
TypeScript

//// [tests/cases/compiler/exportAssignmentOfGenericType1.ts] ////
//// [exportAssignmentOfGenericType1_0.ts]
export = T;
class T<X> { foo: X; }
//// [exportAssignmentOfGenericType1_1.ts]
///<reference path='exportAssignmentOfGenericType1_0.ts'/>
import q = require("exportAssignmentOfGenericType1_0");
class M extends q<string> { }
var m: M;
var r: string = m.foo;
//// [exportAssignmentOfGenericType1_0.js]
define(["require", "exports"], function (require, exports) {
var T = (function () {
function T() {
}
return T;
})();
return T;
});
//// [exportAssignmentOfGenericType1_1.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
define(["require", "exports", "exportAssignmentOfGenericType1_0"], function (require, exports, q) {
var M = (function (_super) {
__extends(M, _super);
function M() {
_super.apply(this, arguments);
}
return M;
})(q);
var m;
var r = m.foo;
});