-
Notifications
You must be signed in to change notification settings - Fork 4k
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
nint/IntPtr differences should be disallowed in partial methods #45301
Comments
This needs to go through LDM before we make the change because the proposed design goes against how I agree this design seems a bit off and if we were starting from scratch I would argue against it. At this point though this is the design that we are working with. Trying to enforce a new design for |
The compiler currently reports errors for differences in tuple element names (see example). |
@cston yes it does but that seems the outlier behavior here. If we made any change here it would seem the more sensible change would be to remove that warning. Adding more deviations just makes the behavior harder and harder to explain. At some point it becomes more like a trivia question than a design. |
We may have reached the point in the schedule where this needs to become a future warning wave instead of an error. |
See #45519 for the set of differences in signature that should be reported as errors. |
Added a warning wave warning for partial method type differences in #47576. |
Related to #45128
Version Used: 472c072
Steps to Reproduce:
Expected Behavior:
Errors on parameter/return type differences in the implementing declarations.
Actual Behavior:
No diagnostics, the program is allowed to compile and the defining declaration is used in the metadata signature.
/cc @cston. Native integer spec changes may be needed.
The text was updated successfully, but these errors were encountered: