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

Partial properties: misc compiler layer work #73527

Merged
Prev Previous commit
Apply suggestions from code review
  • Loading branch information
RikkiGibson committed May 20, 2024
commit 33cc9c07f847125b96ff8a20f1cde4956f2e516c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ partial class C
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C", "P").WithLocation(4, 24)
);

var members = comp.GetMembers<SourcePropertySymbol>("C.P");
var members = comp.GetMembers("C.P").SelectAsArray(m => (SourcePropertySymbol)m);
Assert.Equal(2, members.Length);
Assert.True(members[0].IsExtern);
Assert.True(members[0].IsPartialImplementation);
Expand Down Expand Up @@ -4431,7 +4431,7 @@ partial class C
}
""";

var comp = CreateCompilation(source, parseOptions.TestOptions.RegularNext);
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularNext);
comp.VerifyEmitDiagnostics();

comp = CreateCompilation(source, parseOptions: TestOptions.Regular12);
Expand Down