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

Only make members required when RequiredMemberAttribute is present #68577

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

sharwell
Copy link
Member

Fixes #68478

@sharwell sharwell requested a review from a team as a code owner June 13, 2023 13:35
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 13, 2023
Comment on lines +123 to +124
[Fact]
[WorkItem("https://github.com/dotnet/roslyn/issues/68478")]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[Fact]
[WorkItem("https://github.com/dotnet/roslyn/issues/68478")]
[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/68478")]

Copy link
Member Author

Choose a reason for hiding this comment

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

➡️ Keeping this one as-is

public async Task SimpleSetPropertyMissingRequiredAttribute()
{
var code =
"""
Copy link
Member

Choose a reason for hiding this comment

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

my preference would also be consistency. but it's not a deal breaker.

@sharwell sharwell merged commit 07a7cc7 into dotnet:main Jun 13, 2023
24 checks passed
@sharwell sharwell deleted the check-required branch June 13, 2023 19:01
@ghost ghost added this to the Next milestone Jun 13, 2023
@RikkiGibson RikkiGibson modified the milestones: Next, 17.7 P3 Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C# 11 required properties do not compile on dotnet 6
6 participants