2015-02-03 00:15:54 +01:00
|
|
|
//// [genericReturnTypeFromGetter1.ts]
|
|
|
|
export interface A<T> {
|
|
|
|
new (dbSet: DbSet<T>): T;
|
|
|
|
}
|
|
|
|
export class DbSet<T> {
|
|
|
|
_entityType: A;
|
|
|
|
get entityType() { return this._entityType; } // used to ICE without return type annotation
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [genericReturnTypeFromGetter1.js]
|
|
|
|
define(["require", "exports"], function (require, exports) {
|
|
|
|
var DbSet = (function () {
|
|
|
|
function DbSet() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(DbSet.prototype, "entityType", {
|
2015-02-07 05:03:24 +01:00
|
|
|
get: function () { return this._entityType; } // used to ICE without return type annotation
|
2015-02-03 00:15:54 +01:00
|
|
|
,
|
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return DbSet;
|
|
|
|
})();
|
|
|
|
exports.DbSet = DbSet;
|
|
|
|
});
|