TypeScript/tests/baselines/reference/noTypeArgumentOnReturnType1.js

18 lines
266 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [noTypeArgumentOnReturnType1.ts]
class A<T>{
foo(): A{
return null;
}
}
//// [noTypeArgumentOnReturnType1.js]
var A = (function () {
function A() {
}
A.prototype.foo = function () {
return null;
};
return A;
})();