mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
9 lines
265 B
TypeScript
9 lines
265 B
TypeScript
// @strict: true
|
|
|
|
declare const a: { p: string | undefined, m(): string | undefined };
|
|
declare const b: { p: string | undefined, m(): string | undefined };
|
|
|
|
const n1 = a.p ?? "default";
|
|
const n2 = a.m() ?? "default";
|
|
const n3 = a.m() ?? b.p ?? b.m() ?? "default";;
|