TypeScript/tests/baselines/reference/functionWithThrowButNoReturn1.js

13 lines
208 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [functionWithThrowButNoReturn1.ts]
function fn(): number {
throw new Error('NYI');
var t;
}
//// [functionWithThrowButNoReturn1.js]
function fn() {
throw new Error('NYI');
var t;
}