Skip to content

Commit

Permalink
update baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson committed Apr 30, 2024
1 parent a3098a3 commit b72eec9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -978,9 +978,12 @@ partial class C

var comp = CreateCompilation(source);
comp.VerifyEmitDiagnostics(
// (8,17): error CS8799: Both partial member declarations must have identical accessibility modifiers.
// partial int P { get => throw null!; set { } }
Diagnostic(ErrorCode.ERR_PartialMemberAccessibilityDifference, "P").WithLocation(8, 17));
// (9,17): error CS8799: Both partial member declarations must have identical accessibility modifiers.
// partial int P1 { get => throw null!; set { } }
Diagnostic(ErrorCode.ERR_PartialMemberAccessibilityDifference, "P1").WithLocation(9, 17),
// (10,27): error CS8799: Both partial member declarations must have identical accessibility modifiers.
// protected partial int P2 { get => throw null!; set { } }
Diagnostic(ErrorCode.ERR_PartialMemberAccessibilityDifference, "P2").WithLocation(10, 27));
}

// Property accessor modifiers can only include:
Expand Down

0 comments on commit b72eec9

Please sign in to comment.