From d8bccf62c4bb96d83b919c1a36761796a935be89 Mon Sep 17 00:00:00 2001 From: Alireza Habibi Date: Fri, 22 Oct 2021 19:44:44 +0330 Subject: [PATCH] Flip --- src/Compilers/CSharp/Portable/Binder/PatternExplainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Portable/Binder/PatternExplainer.cs b/src/Compilers/CSharp/Portable/Binder/PatternExplainer.cs index de694614161ca..9b53f581d9564 100644 --- a/src/Compilers/CSharp/Portable/Binder/PatternExplainer.cs +++ b/src/Compilers/CSharp/Portable/Binder/PatternExplainer.cs @@ -288,7 +288,7 @@ string tryHandleListPattern(ref bool unnamedEnumValue) return null; } - if (slice.StartIndex - slice.EndIndex <= lengthValue) + if (slice.StartIndex - slice.EndIndex > lengthValue) { // The sample value must be equal or greater than the required minimum length by the slice. return null;