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

Merged
merged 4 commits into from
Nov 22, 2024
Merged

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.

@jskeet jskeet requested a review from BillWagner November 21, 2024 16:59
@BillWagner
Copy link
Member

trying a close and reopen. #1218 has already been merged, and that removes the attributes added in 9.

Since there aren't any conflicts, that may be enough.

@BillWagner BillWagner closed this Nov 22, 2024
@BillWagner BillWagner reopened this Nov 22, 2024
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM @jskeet

Once the build is clean, let's :shipit:

@jskeet
Copy link
Contributor Author

jskeet commented Nov 22, 2024

I'll rebase and repush.

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.)
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a suggestion to fix the build issue. Then, I think this is ready.

Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
@jskeet
Copy link
Contributor Author

jskeet commented Nov 22, 2024

Merged the suggestion - let's see whether we get to green...

@jskeet
Copy link
Contributor Author

jskeet commented Nov 22, 2024

Fixed a typo, so let's wait another time...

@jskeet
Copy link
Contributor Author

jskeet commented Nov 22, 2024

It's green :) Merging.

@jskeet jskeet merged commit 60cb5dc into dotnet:draft-v8 Nov 22, 2024
7 checks passed
@jskeet jskeet deleted the langversion branch November 22, 2024 16:51
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.

2 participants