You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presence of active patterns disables the detection of simple duplicates cases.
typeFoo= A | B | C
letgood=function| A ->()| B ->()| B ->()// Squiggly with warning "This rule will never be matched"|_->()|_->()// Squiggly with warning "This rule will never be matched"let(|IsA|_|)x =if x = A then Some ()else None
letbad=function| IsA ->()| B ->()| B ->()// no warning|_->()|_->()// no warning
When active patterns are present checking whether a match is exhaustive clearly becomes difficult/impossible but duplicate cases can still be detected.
The text was updated successfully, but these errors were encountered:
Tracking this suggestion: dotnet/fsharp#2754
Presence of active patterns disables the detection of simple duplicates cases.
When active patterns are present checking whether a match is exhaustive clearly becomes difficult/impossible but duplicate cases can still be detected.
The text was updated successfully, but these errors were encountered: