TypeScript/tests/baselines/reference/missingReturnStatement.js

22 lines
393 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [missingReturnStatement.ts]
module Test {
export class Bug {
public foo():string {
}
}
}
//// [missingReturnStatement.js]
var Test;
(function (Test) {
var Bug = (function () {
function Bug() {
}
Bug.prototype.foo = function () {
};
return Bug;
})();
Test.Bug = Bug;
})(Test || (Test = {}));