-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Conversation
Thanks @Foxtrek64 . Can you please add a simple test, that fails before your change and passes after? Something that calls |
The tests are apparently in src\System.Reflection.Emit.ILGeneration\tests\Label\LabelEquals.cs |
I was unable to run the unit tests through VS (kept throwing So I relied on msbuild to do it for me. It seems happy enough.
|
@GrabYourPitchforks @steveharter can you please review it? |
@Foxtrek64 can you rebase so CI can see the changes made to the CLR? Thanks.
|
25e4c8b
to
d836988
Compare
I've done a couple rebases (the second one just to make sure I did it right) and the packing test is still failing. If you guys have any ideas on something I may have missed, I'm all ears. |
Note the |
That file doesn't have a Label declaration. Should I add one, perhaps cloning the code from this declaration? corefx/src/System.Reflection.Emit.ILGeneration/ref/System.Reflection.Emit.ILGeneration.cs Lines 59 to 67 in d836988
|
It’s an additional file, you cannot redefine members defined in another file. Just make sure the class is partial and add the interface implementation in the additional file. It’s just a handy way of doing ifdef’s if they can be represented using partial classes. |
@ericstj Eric, could you clarify your last post? I'm not entirely certain what you mean. |
Apologies, in this case its a struct: corefx/src/System.Reflection.Emit.ILGeneration/ref/System.Reflection.Emit.ILGeneration.cs Line 59 in aa3865a
The file I suggested that you change. https://github.com/dotnet/corefx/blob/d83698810f608688f103951a1d37ad749c8a3a5f/src/System.Reflection.Emit.ILGeneration/ref/System.Reflection.Emit.ILGeneration.netcore.cs In other words, don't modify System.Reflection.Emit.ILGeneration.cs, literally only add the following to System.Reflection.Emit.ILGeneration.netcore.cs: public partial struct Label : IEquatable<System.Reflection.Emit.Label>
{ } |
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
src/System.Reflection.Emit.ILGeneration/tests/Label/LabelEquals.cs
Outdated
Show resolved
Hide resolved
Thanks. |
* Label implements IEquatable<Label> * Add Unit Tests for IEquatable<Label> * Actually track LabelEquals.cs this time * Move Label IEquatable declaration to ILGeneration.netcore * Merge IEquatable unit tests with existing equality tests Commit migrated from dotnet/corefx@b561cd4
Adds an implementation of
IEquatable<Label>
toSystem.Reflection.Emit.Label
.Fixes dotnet/corefx#32959
Relies on dotnet/corecrl/pull/22938