Skip to content

Commit

Permalink
Nullable annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel Nobel committed May 3, 2023
1 parent 571b900 commit 42ec22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/Qowaiv.Specs/Data/SvoParameter_specs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void SVO_lacks_cast_promised_in_attribute()
{
private readonly string val;
public StructWithoutRequiredCast(string str) => val = str;
public override bool Equals(object obj) => obj is StructWithoutRequiredCast svo && Equals(svo);
public override bool Equals(object? obj) => obj is StructWithoutRequiredCast svo && Equals(svo);
public bool Equals(StructWithoutRequiredCast other) => other.val == val;
public override int GetHashCode() => (val ?? "").GetHashCode();
public override string ToString() => val;
Expand Down

0 comments on commit 42ec22a

Please sign in to comment.