mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
10 lines
145 B
TypeScript
10 lines
145 B
TypeScript
|
let x: string | number | boolean;
|
||
|
let cond: boolean;
|
||
|
|
||
|
(x = "") && (x = 0);
|
||
|
x; // string | number
|
||
|
|
||
|
x = "";
|
||
|
cond && (x = 0);
|
||
|
x; // string | number
|