-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle calls to generic constructors in JSpecify mode #1141
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1141 +/- ##
============================================
- Coverage 88.24% 88.24% -0.01%
- Complexity 2261 2263 +2
============================================
Files 85 85
Lines 7309 7314 +5
Branches 1458 1458
============================================
+ Hits 6450 6454 +4
- Misses 431 432 +1
Partials 428 428 ☔ View full report in Codecov by Sentry. |
break; | ||
default: | ||
throw new RuntimeException("Unexpected tree kind: " + tree.getKind()); | ||
} | ||
if (typeArguments.isEmpty()) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below on line 178 don't you again need to handle the case where the tree.getKind() could be a NEW_CLASS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now have new tests that exercise the rest of the method for the NEW_CLASS
case
@akshayutture this is ready for another look |
LGTM! |
Fixes #1138