mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
|
// @strict: true
|
||
|
|
||
|
declare const a1: 'literal' | undefined | null
|
||
|
declare const a2: '' | undefined | null
|
||
|
declare const a3: 1 | undefined | null
|
||
|
declare const a4: 0 | undefined | null
|
||
|
declare const a5: true | undefined | null
|
||
|
declare const a6: false | undefined | null
|
||
|
|
||
|
|
||
|
const aa1 = a1 ?? a2 ?? a3 ?? a4 ?? a5 ?? a6 ?? 'whatever'
|