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

26 lines
445 B
JavaScript

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