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

Use LangVersion=8 where feasible in testing #1217

Open
wants to merge 2 commits into
base: draft-v8
Choose a base branch
from

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Nov 21, 2024

Note that now both MaybeNull1Attribute and MaybeNull2Attribute fail to build - I believe this is correct, and should be reflected in spec changes which you may be doing already. Happy to wait until you're done, then rebase this.

This should allow us to avoid accidentally using C# 9+ features, at least in most cases.

The standalone-console and standalone-console-without-using templates are unchanged, as many examples using them expect to use top-level statements.
(Once we've got as far as C# 10, we should be able to use LangVersion for all projects.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant