swc/crates/swc_ecma_parser/tests/tsc/callChain.2.ts

11 lines
207 B
TypeScript
Raw Normal View History

// @strict: false
declare const o1: undefined | (() => number);
o1?.();
declare const o2: undefined | { b: () => number };
o2?.b();
declare const o3: { b: (() => { c: string }) | undefined };
o3.b?.().c;