mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
12 lines
189 B
TypeScript
12 lines
189 B
TypeScript
// @strict: true
|
|
// @target: esnext, es2020, es2015
|
|
|
|
let x: string | undefined;
|
|
|
|
let d: string | undefined;
|
|
d ?? (d = x ?? "x")
|
|
d.length;
|
|
|
|
let e: string | undefined;
|
|
e ??= x ?? "x"
|
|
e.length |