Skip to content

Commit

Permalink
Add note for field keyword feature
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson committed May 16, 2024
1 parent 179203f commit b190153
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3472,6 +3472,8 @@ partial class C
// [field: Attr]
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "property").WithLocation(10, 6));

// https://github.com/dotnet/roslyn/issues/57012
// 'field' keyword in properties feature should test partial properties where the implementation uses 'field' and one or both parts have 'field:' targeted attribute lists.
var property = comp.GetMember<SourcePropertySymbol>("C.P");
AssertEx.Equal([], property.GetAttributes().ToStrings());
}
Expand Down

0 comments on commit b190153

Please sign in to comment.