-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Disallow dynamic calls on ref struct receivers #72674
Conversation
Fixes dotnet#72606. Note that the behavior in the bug has slightly changed from the sharplab build used in the repro due to dotnet#71421.
@dotnet/roslyn-compiler for reviews |
@dotnet/roslyn-compiler for a second review. |
/azp run roslyn-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
@dotnet/roslyn-compiler for reviews |
@AlekseyTs PTAL. |
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 2). Only question is on testing indexers too
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 3)
What are the possible types of this expression? Are they Refers to: src/Compilers/CSharp/Portable/Binder/Binder_Invocation.cs:473 in 0ea0eeb. [](commit_id = 0ea0eeb, deletion_comment = False) |
Should this method be adjusted too? #Closed Refers to: src/Compilers/CSharp/Portable/Binder/Binder_Invocation.cs:396 in 0ea0eeb. [](commit_id = 0ea0eeb, deletion_comment = False) |
Done with review pass (commit 3) |
Yes, but that revealed #72762. I've made the adjustment, but I think fixing the assert is outside the scope of this PR, so I opened the bug. |
@333fred It looks like there are some legitimate CI failures |
Done with review pass (commit 4) |
…more things that it will error on.
* upstream/main: (416 commits) Semantic search (dotnet#71268) Make more static Fix MEF import of IExternalCSharpCopilotCodeAnalysisService to allow null Make static Make private Add comments Add method name to TimeInQueue telemetry (dotnet#72841) switch to frozen Simplify Add test Downstream Use singular helper when creating checksumsw Use singular helper when creating checksumsw Remove ability for a project to change its language Revert "Avoid creating result temp for is-expressions (dotnet#72273)" (dotnet#72827) Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2420199 Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2420199 Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2420199 Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2420199 Improve generic type argument list error recovery (dotnet#69734) ...
@AlekseyTs for another review |
Done with review pass (commit 6) |
* upstream/main: (182 commits) inline inline move helper add helper add helper remove usings Remove special enumerator and builder usings usings add helper Remove unused usings Remove Delete accessor Epedited wait Extract helper Extract helper Seal type remove unused usings Docs Simplify ...
@AlekseyTs addressed your feedback. |
@jcouv for another review as well. |
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 8), assuming CI is passing
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 8)
Fixes #72606. Note that the behavior in the bug has slightly changed from the sharplab build used in the repro due to #71421.