-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix cycle in partial event interface implementation #80994
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
Fix cycle in partial event interface implementation #80994
Conversation
|
|
||
| private EmitData GetEmitData() => _emitData ?? throw new InvalidOperationException("Must call Emit first"); | ||
|
|
||
| internal PortableExecutableReference GetImageReference( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 inspired by GetCompilation(...).EmitToImageReference - there was no equivalent for CompileAndVerify afaict
AlekseyTs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (commit 1)
|
@RikkiGibson @dotnet/roslyn-compiler for a second review, thanks |
1 similar comment
|
@RikkiGibson @dotnet/roslyn-compiler for a second review, thanks |
| Assert.Null(e2.PartialDefinitionPart); | ||
| } | ||
|
|
||
| [Fact] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WorkItem? And on other tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these are not directly related to the issue, they are just a byproduct of the fix. (One is actually just testing a pre-existing behavior.) The related tests (InterfaceImplementation*) have WorkItem attribute.
Fixes #80986.
Also ensures both partial event parts have consistent
IsWindowsRuntimeEvent(this discrepancy appeared during testing).