TypeScript/tests/baselines/reference/noConstraintInReturnType1.js
2014-07-15 13:08:10 -07:00

22 lines
436 B
JavaScript

//// [noConstraintInReturnType1.ts]
class List<T extends {}> {
static empty<T extends {}>(): List<T> { return null; }
}
//// [noConstraintInReturnType1.js]
var List = (function () {
function List() {
}
List.empty = function () {
return null;
};
return List;
})();
//// [noConstraintInReturnType1.d.ts]
declare class List<T extends {}> {
static empty<T extends {}>(): List<T>;
}