From 1420a4060edad6fd0f414cf373754449a97df485 Mon Sep 17 00:00:00 2001 From: Tom Scheler Date: Mon, 2 Oct 2023 15:42:54 +0200 Subject: [PATCH] Add missing struct contraint to `Matches` --- LanguageExt.Core/Class Instances/Pred/String/Predicates.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LanguageExt.Core/Class Instances/Pred/String/Predicates.cs b/LanguageExt.Core/Class Instances/Pred/String/Predicates.cs index 1965dccf9..9e849b74f 100644 --- a/LanguageExt.Core/Class Instances/Pred/String/Predicates.cs +++ b/LanguageExt.Core/Class Instances/Pred/String/Predicates.cs @@ -17,7 +17,7 @@ public bool True(string value) => } public struct Matches : Pred - where PATTERN : Const + where PATTERN : struct, Const { public static readonly Matches Is = default;