mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
16 lines
273 B
TypeScript
16 lines
273 B
TypeScript
// @strict: true
|
|
// @target: esnext, es2021, es2020, es2015
|
|
interface A {
|
|
baz: 0 | 1 | 42 | undefined | ''
|
|
}
|
|
|
|
declare const result: A;
|
|
declare const a: A;
|
|
declare const b: A;
|
|
declare const c: A;
|
|
|
|
(a.baz) &&= result.baz;
|
|
(b.baz) ||= result.baz;
|
|
(c.baz) ??= result.baz;
|
|
|