-
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
Allow implicit implementation of non-public interface members #54182
Conversation
LanguageVersion? availableVersion = implementingType.DeclaringCompilation?.LanguageVersion; | ||
if (requiredVersion > availableVersion) | ||
{ | ||
diagnostics.Add(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, GetInterfaceLocation(interfaceMember, implementingType), | ||
implementingType, interfaceMember, implicitImpl, | ||
availableVersion.GetValueOrDefault().ToDisplayString(), new CSharpRequiredLanguageVersion(requiredVersion)); | ||
} |
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.
Wondering why this is not using the usual "CheckFeatureAvailability" method? #Resolved
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.
Wondering why this is not using the usual "CheckFeatureAvailability" method?
Because I am not interested in the generic error that helper would report.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@dotnet/roslyn-compiler Please review |
3 similar comments
@dotnet/roslyn-compiler Please review |
@dotnet/roslyn-compiler Please review |
@dotnet/roslyn-compiler Please review |
@dotnet/roslyn-compiler For the second review. |
@dotnet/roslyn-compiler For the second review. |
3 similar comments
@dotnet/roslyn-compiler For the second review. |
@dotnet/roslyn-compiler For the second review. |
@dotnet/roslyn-compiler For the second review. |
@dotnet/roslyn-compiler For the second review. |
…ures/caller-argument-expression * upstream/main: (492 commits) Add nullable ref annotations to SyntaxFactory (#54199) Add 'replace' APIs and hook them up to the IDE (#54270) Allow implicit implementation of non-public interface members (#54182) Make insertion a stage of the official build (#54376) Cleanup Remove unused property Simplify glyph computation Report all-empty top level statements. (#54385) Calculate TypeParameterKind based on the container type (#54200) vert not roaming Split tests Multple matches Report as we get results Fixup tests Update tests Avoid thread dependency in VirtualMemoryNotificationListener constructor Fast progression search. Add LanguageVersion 10 (#54359) Sure, why not ...
Closes #53566.
Fixes #53565.