TypeScript/tests/baselines/reference/conditionalExpression1.js

6 lines
175 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [conditionalExpression1.ts]
var x: boolean = (true ? 1 : ""); // should be an error
//// [conditionalExpression1.js]
var x = (true ? 1 : ""); // should be an error