-
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
Add more interceptors tests #68462
Add more interceptors tests #68462
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbolWithAttributes.cs
Outdated
Show resolved
Hide resolved
…lWithAttributes.cs
C.M(); // 1 | ||
|
||
class C | ||
{ |
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: unnecessary blank line below #Closed
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.
Removed, thanks.
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_Call.cs
Show resolved
Hide 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.
Done with review pass (iteration 6)
src/Compilers/CSharp/Test/Semantic/Semantics/InterceptorsTests.cs
Outdated
Show resolved
Hide 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.
LGTM Thanks (iteration 7)
Test plan: #67421
Added error when using UnmanagedCallersOnly on an interceptor.
Added warnings when tuple names differ between original and interceptor methods.
Added other misc tests.
Pack errors
The remaining prototype comments are either addressed or moved to the test plan under the relevant items. For example, the prototype comment in MemberSignatureComparer will likely be impacted when we make the generics changes for .NET 8, so I moved it to under a generics bullet in the test plan.
May be a good idea to review d47ca0d standalone as it is just a mechanical packing of the error codes.