Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Label implements IEquatable<Label> #35673

Merged
merged 5 commits into from
Apr 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ public partial class ILGenerator
{
public virtual void EmitCalli(System.Reflection.Emit.OpCode opcode, System.Runtime.InteropServices.CallingConvention unmanagedCallConv, Type returnType, Type[] parameterTypes) { }
}

public partial struct Label : IEquatable<System.Reflection.Emit.Label>
{ }
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public void Equals_SameInstance_ReturnsTrue()
Label label = new Label();
Assert.True(label.Equals(label));
Assert.True(label.Equals((object)label));
Assert.True(label.Equals((IEquatable<Label>)label));
}

[Fact]
Expand All @@ -27,6 +28,7 @@ public void Equals_DifferentLabel_ReturnsFalse()

Assert.False(label1.Equals(label2));
Assert.False(label1.Equals((object)label2));
Assert.False(label1.Equals((IEquatable<Label>)label2));
}

[Theory]
Expand Down