Update breaking changes document for 17.0 struct initializer fixes#59245
Merged
cston merged 5 commits intodotnet:mainfrom Feb 16, 2022
Merged
Update breaking changes document for 17.0 struct initializer fixes#59245cston merged 5 commits intodotnet:mainfrom
cston merged 5 commits intodotnet:mainfrom
Conversation
ab07432 to
73f1de5
Compare
333fred
approved these changes
Feb 3, 2022
Youssef1313
reviewed
Feb 3, 2022
| ## This document lists known breaking changes in Roslyn in C# 10.0 which will be introduced with .NET 6. | ||
|
|
||
| 1. Beginning with C# 10.0, null suppression operator is no longer allowed in patterns. | ||
| 1. <a name="1"></a>Beginning with C# 10.0, null suppression operator is no longer allowed in patterns. |
Member
There was a problem hiding this comment.
Why do these anchor tags exist?
Contributor
Author
There was a problem hiding this comment.
To allow links to specific items.
jcouv
reviewed
Feb 11, 2022
| ``` | ||
|
|
||
| 4. In Visual Studio 17.1, `struct` type declarations with field initializers must include an explicitly declared constructor. Additionally, all fields must be definitely assigned in `struct` instance constructors that do not have a `: this()` initializer so any previously unassigned fields must be assigned from the added constructor or from field initializers. | ||
| 4. <a name="4"></a>In Visual Studio 17.0 servicing, an error is reported in a `record struct` with a primary constructor if an explicit constructor has a `this()` initializer that invokes the implicit parameterless constructor. |
Member
There was a problem hiding this comment.
nit: consider add links to an issue or PR if it might be useful reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Include specific breaking change entries corresponding to #59055.
Also, added anchor tags to each breaking change entry.