dillon1000/react
Commit
Browse files Remove restriction on optional nesting
We previously disallowed OptionalMemberExpression inside a normal MemberExpression, eg `(a?.b).c`. The new representation handles this case correctly so we can remove the restriction.
Changed paths3 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedR compiler/forget/src/__tests__/fixtures/compiler/error.nonoptional-load-from-optional-memberexpr.expect.md →compiler/forget/src/__tests__/fixtures/compiler/nonoptional-load-from-optional-memberexpr.expect.md RenamedR compiler/forget/src/__tests__/fixtures/compiler/error.nonoptional-load-from-optional-memberexpr.js →compiler/forget/src/__tests__/fixtures/compiler/nonoptional-load-from-optional-memberexpr.js RenamedPatch
Files changed
Rendering syntax-highlighted changes…