5 lines
153 B
JavaScript
5 lines
153 B
JavaScript
//// [conditionalExpression1.ts]
|
|
var x: boolean = (true ? 1 : ""); // should be an error
|
|
|
|
//// [conditionalExpression1.js]
|
|
var x = (true ? 1 : "");
|