TypeScript/tests/baselines/reference/conditionalExpression1.js
2014-08-14 16:36:33 -07:00

6 lines
176 B
JavaScript

//// [conditionalExpression1.ts]
var x: boolean = (true ? 1 : ""); // should be an error
//// [conditionalExpression1.js]
var x = (true ? 1 : ""); // should be an error