Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UnnecessaryInnerClass: add test for safe qualified expressions (#4864)
Add a unit test for a bug in which safe qualified references to a nullable field in the parent class (i.e. as `?.`) would not be marked as warnings in release 1.20.0. This issue has been inadvertently fixed by #4738, but adding a unit test will guard against future regressions. I was able to confirm this test fails by checking out the 1.20.0 tag and running the unit test; against that tag the fix was to override the visitSafeQualifiedExpression() function with the same logic as visitCallExpression().
- Loading branch information