Merged
Conversation
Adds some additional details on various topics, including OHI and metadata. Also adds new questions for LDM to address in a full session in early Jan.
Member
Author
|
@jcouv @RikkiGibson for review. |
333fred
added a commit
to 333fred/roslyn
that referenced
this pull request
Dec 28, 2021
Adding `required` to a member now results in the type having a `RequiredMembersAttribute` emitted with the name of that member as the contents. Reading this data from metadata is not yet supported, nor is adding the requisite `ObsoleteAttribute` to constructors that depend on such contracts. The rules for when required is allowed and when it is disallowed are documented in dotnet/csharplang#5566, pending LDM review. Test plan: dotnet#57046
jcouv
reviewed
Jan 4, 2022
RikkiGibson
approved these changes
Jan 4, 2022
jcouv
reviewed
Jan 4, 2022
| } | ||
| ``` | ||
|
|
||
| It is an error to hide a `required` member, as that member can no longer be set by a consumer. |
Member
There was a problem hiding this comment.
nit: I don't know if Mads or someone else has created a proposal for addressing members of specific types (something like x.(Type.Method)(argument)). If there's one, let's add a note there about this scenario.
jcouv
reviewed
Jan 4, 2022
jcouv
reviewed
Jan 4, 2022
jcouv
reviewed
Jan 4, 2022
jcouv
reviewed
Jan 4, 2022
jcouv
reviewed
Jan 4, 2022
jcouv
reviewed
Jan 4, 2022
Member
jcouv
left a comment
There was a problem hiding this comment.
Done with review pass (iteration 1)
RikkiGibson
approved these changes
Jan 4, 2022
…dates * upstream/main: Add example of when field initializers will not be run for option 3. Correct link Added LDM notes for January 3rd, 2022. Update README.md Update LDM agenda Fix line wrapping (dotnet#5589) Update raw-string-literal.md 'record struct' constructor requires 'this' initializer that calls primary constructor or explicit constructor (dotnet#5562) Tweak readonly backing field wording (dotnet#5583) Update semi auto props spec around readonly backing field for init-only (dotnet#5582) Spec change around backing field being readonly (dotnet#5575)
333fred
added a commit
to Youssef1313/csharplang
that referenced
this pull request
Jan 12, 2022
* upstream/main: Update LDM agenda Added LDM Notes for January 5th, 2022. Update the required members spec (dotnet#5566) Add example of when field initializers will not be run for option 3. Correct link Added LDM notes for January 3rd, 2022. Update README.md Update LDM agenda Fix line wrapping (dotnet#5589) Update raw-string-literal.md 'record struct' constructor requires 'this' initializer that calls primary constructor or explicit constructor (dotnet#5562) Tweak readonly backing field wording (dotnet#5583) Update semi auto props spec around readonly backing field for init-only (dotnet#5582) Spec change around backing field being readonly (dotnet#5575)
333fred
added a commit
to 333fred/roslyn
that referenced
this pull request
Jan 20, 2022
Adding `required` to a member now results in the type having a `RequiredMembersAttribute` emitted with the name of that member as the contents. Reading this data from metadata is not yet supported, nor is adding the requisite `ObsoleteAttribute` to constructors that depend on such contracts. The rules for when required is allowed and when it is disallowed are documented in dotnet/csharplang#5566, pending LDM review. Test plan: dotnet#57046
333fred
added a commit
to dotnet/roslyn
that referenced
this pull request
Feb 4, 2022
Adding `required` to a member now results in the type having a `RequiredMemberAttribute` emitted on the member and the containing type. Reading this data from metadata is not yet supported, nor is adding the requisite `ObsoleteAttribute` to constructors that depend on such contracts. The rules for when required is allowed and when it is disallowed are documented in dotnet/csharplang#5566. Test plan: #57046
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.
Adds some additional details on various topics, including OHI and metadata. Also adds new questions for LDM to address in a full session in early Jan.
Relates to test plan dotnet/roslyn#57046