Skip to content
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

Merged
merged 2 commits into from
Aug 24, 2016
Merged

Conversation

svick
Copy link
Contributor

@svick svick commented Aug 16, 2016

Fixes #13191.

This confuses tools like Reflector and custom tools that don't expect structs to be marked abstract.

It does not seem to be an issue for CLR or peverify (maybe it should?).

@@ -149,7 +149,7 @@ public override bool IsSealed

public override bool IsAbstract
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

@agocke agocke Aug 19, 2016

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.

Copy link
Contributor Author

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.

@agocke
Copy link
Member

agocke commented Aug 19, 2016

retest microbuild_prtest please

@agocke
Copy link
Member

agocke commented Aug 20, 2016

LGTM

@agocke
Copy link
Member

agocke commented Aug 20, 2016

/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.

@gafter
Copy link
Member

gafter commented Aug 22, 2016

LGTM

@agocke agocke merged commit 34bda8b into dotnet:master Aug 24, 2016
@agocke
Copy link
Member

agocke commented Aug 24, 2016

@svick Thanks for the contribution, it's much appreciated!

@svick svick deleted the struct-closure branch August 24, 2016 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants