diff --git a/YamlDotNet/Core/AnchorName.cs b/YamlDotNet/Core/AnchorName.cs index 17fa1955..413ad70e 100644 --- a/YamlDotNet/Core/AnchorName.cs +++ b/YamlDotNet/Core/AnchorName.cs @@ -71,6 +71,6 @@ public override int GetHashCode() return !(left == right); } - public static implicit operator AnchorName(string value) => value == null ? Empty : new AnchorName(value); + public static implicit operator AnchorName(string? value) => value == null ? Empty : new AnchorName(value); } }