-
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
Suppress ref readonly
warning for extension method receiver
#69083
Suppress ref readonly
warning for extension method receiver
#69083
Conversation
ErrorCode.WRN_ArgExpectedRefOrIn, | ||
argument.Syntax, | ||
arg + 1); | ||
if (!invokedAsExtensionMethod) |
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.
var source = $$""" | ||
static class C | ||
{ | ||
static void M(this {{modifier}} int x) => System.Console.Write(x); |
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 (commit 1) |
Here and below we probably shouldn't do
But there is no second argument. In reply to: 1642126147 Refers to: src/Compilers/CSharp/Portable/Binder/Binder_Expressions.cs:3288 in 596600a. [](commit_id = 596600a, deletion_comment = False) |
Done with review pass (commit 3) |
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 (commit 4)
@jcouv for a second review, thanks |
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 4)
Speclet: the relevant section (second paragraph) · PR
Test plan: #68056