-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Missing warnings on overriding a method with different nullability attributes #41368
Comments
That cycle would occur if we applied the desired fix (see above diff) using the above test. |
From discussion with @cston the proposed design would be an extension of #47968 (we can leverage the flags he put in place). To compute From discussion with Aleksey, we think we can fix this specific issue by adjusting the type arguments made from type parameters:
and
|
Relates to PR #41336
My attempts to fixing this resulted in a difficult cycle to fix, so the problem was separated into an issue.
Should take a look at this again after we investigate a solution for constraint binding cycles (#48154).
The proposed fix was:
But that caused a cycle with
with the following stack trace:
I think a more common motivating scenario is:
The text was updated successfully, but these errors were encountered: