mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
9 lines
252 B
TypeScript
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
|