mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
28 lines
439 B
TypeScript
28 lines
439 B
TypeScript
// @strict: true
|
|
// @target: esnext, es2021, es2020, es2015
|
|
declare let a: string | undefined
|
|
declare let b: string | undefined
|
|
declare let c: string | undefined
|
|
|
|
declare let d: number | undefined
|
|
declare let e: number | undefined
|
|
declare let f: number | undefined
|
|
|
|
declare let g: 0 | 1 | 42
|
|
declare let h: 0 | 1 | 42
|
|
declare let i: 0 | 1 | 42
|
|
|
|
|
|
a &&= "foo"
|
|
b ||= "foo"
|
|
c ??= "foo"
|
|
|
|
|
|
d &&= 42
|
|
e ||= 42
|
|
f ??= 42
|
|
|
|
g &&= 42
|
|
h ||= 42
|
|
i ??= 42
|