-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Unsafe evolution: check lang version for caller-unsafe declarations #81698
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
base: features/UnsafeEvolution
Are you sure you want to change the base?
Unsafe evolution: check lang version for caller-unsafe declarations #81698
Conversation
| }) | ||
| .VerifyDiagnostics(); | ||
|
|
||
| CompileAndVerify(source, |
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.
Please use an explicit langversion option here for clarity. #Closed
|
@jcouv for a second review, thanks |
|
@AlekseyTs for a second review if you are available, thanks |
| return members; | ||
| } | ||
|
|
||
| public static ImmutableArray<Symbol> GetMembersByQualifiedName(this NamespaceOrTypeSymbol container, string qualifiedName) |
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.
nit: consider making this GetMembersByQualifiedName<T> like GetMembers<T> above. Then the caller doesn't need OfType<MethodSymbol> (unless there were multiple member kinds involved)
jcouv
left a comment
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.
LGTM Thanks (commit 3)
Test plan: #81207
Follow up on #81581 (i.e., still only for methods and properties).