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 4 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 @@ -49,5 +49,14 @@ public void Equals_EqualityOperators()
Assert.True(lb1 == lb2);
Assert.False(lb1 != lb2);
}

[Fact]
public void Equals_IEquatable()
{
IEquatable<Label> label1 = new Label();
Label label2 = new Label();

Assert.True(label1.Equals(label2));
}
Foxtrek64 marked this conversation as resolved.
Show resolved Hide resolved
}
}