Repository navigation
Fix crash with captured array types - #1508
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughUpdated CheckIdenticalNullabilityVisitor.visitArrayType to avoid casting rhsType to Type.ArrayType; it now checks whether rhsType is an array and returns true early for non-array rhs (e.g., captured types). If rhs is an array, the component type is extracted from that matched array type and used for the existing nullability/component comparisons. Added a new JUnit test issue1503CapturedArrayTypeInTernary exercising a captured-array type in a ternary expression to ensure no crash. Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1508 +/- ##
=========================================
Coverage 88.47% 88.47%
- Complexity 2837 2838 +1
=========================================
Files 101 101
Lines 9460 9461 +1
Branches 1895 1896 +1
=========================================
+ Hits 8370 8371 +1
Misses 529 529
Partials 561 561 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #1503
Summary by CodeRabbit
Bug Fixes
Tests