-
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
Closure struct should not be abstract #13194
Conversation
@@ -149,7 +149,7 @@ public override bool IsSealed | |||
|
|||
public override bool IsAbstract |
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.
Wanna just make this an expression-bodied property?
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.
There are many single-line properties and methods in this file, including directly above and below this property. Should I change those 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.
@svick I'm fine with that, but you don't have to.
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.
@agocke Done, for the whole file.
retest microbuild_prtest please |
LGTM |
/cc @dotnet/roslyn-compiler For another review. I said he could also simplify the code with expression bodied members. If you'd prefer to review the change without the formatting simplification, just look at the first commit. |
LGTM |
@svick Thanks for the contribution, it's much appreciated! |
Fixes #13191.
This confuses tools like Reflector and custom tools that don't expect
struct
s to be markedabstract
.It does not seem to be an issue for CLR or peverify (maybe it should?).