mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
370 B
Plaintext
12 lines
370 B
Plaintext
controlFlowConditionalExpression.ts(4,1): error TS2454: Variable 'cond' is used before being assigned.
|
|
|
|
|
|
==== controlFlowConditionalExpression.ts (1 errors) ====
|
|
let x: string | number | boolean;
|
|
let cond: boolean;
|
|
|
|
cond ? x = "" : x = 3;
|
|
~~~~
|
|
!!! error TS2454: Variable 'cond' is used before being assigned.
|
|
x; // string | number
|
|
|