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

11 lines
195 B
TypeScript

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