Files
tsgo/testdata/baselines/reference/submodule/compiler/conditionalExpression1.js

9 lines
252 B
TypeScript

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