Skip to content
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

Fix: Type checking behavior on interface extension members #14488

Conversation

rosskuehl
Copy link
Contributor

Resolves fsharp/issues/14480

image

An FS3536 warning was being emitted for extension methods on interfaces without static abstract members (SAM). This was due to some of the MethInfo logic which classifies any method on an interface type to be an abstract method declaration or virtual dispatch slot. Adding an explicit extension member check to the CheckIWSAM function resolves the compiler warning issue.

@rosskuehl rosskuehl requested a review from a team as a code owner December 18, 2022 19:43
@dnfadmin
Copy link

dnfadmin commented Dec 18, 2022

CLA assistant check
All CLA requirements met.

@rosskuehl rosskuehl changed the title Fix: Type constraint checking on interface extension members Fix: Type checking behavior on interface extension members Dec 18, 2022
T-Gro
T-Gro previously approved these changes Dec 19, 2022
@rosskuehl rosskuehl requested review from T-Gro and vzarytovskii and removed request for T-Gro and vzarytovskii December 19, 2022 14:22
@rosskuehl rosskuehl requested a review from T-Gro December 19, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
6 participants