TypeScript/tests/baselines/reference/functionWithThrowButNoReturn1.js
2014-07-12 17:30:19 -07:00

13 lines
208 B
JavaScript

//// [functionWithThrowButNoReturn1.ts]
function fn(): number {
throw new Error('NYI');
var t;
}
//// [functionWithThrowButNoReturn1.js]
function fn() {
throw new Error('NYI');
var t;
}