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

Documentation incorrectly specifies that local functions cannot be static #15654

Closed
allisonchou opened this issue Nov 2, 2019 — with docs.microsoft.com · 2 comments · Fixed by #15655
Closed

Documentation incorrectly specifies that local functions cannot be static #15654

allisonchou opened this issue Nov 2, 2019 — with docs.microsoft.com · 2 comments · Fixed by #15655

Comments

Copy link

I believe this line is now outdated, since local functions can now be static:

"Including the static keyword generates compiler error CS0106, 'The modifier 'static' is not valid for this item.'".


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Youssef1313
Copy link
Member

I think you're correct. dotnet/roslyn#32067

@BillWagner
Copy link
Member

Thanks for writing this @allisonchou

I've added this to the task for the next sprint. We should be finishing all the docs for C# 8 features by then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants