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
There seems to be three conditions for this to occur:
At least three variants on outer level,
At least two variants on inner level (other kinds of "complex" pattern matching logic might be sufficient)
No common patterns (for at least one of the outer variants)
Example:
typeinner =
| Pofint
| Sofinttypeouter =
| Aofinner
| Bofinner
| Cofinnerletf=function(* These cause unreachable code *)
| APa -> a + a
|ASa -> a - a
(* These don't, because there's commonality between them *)|BPa|BSa|CPa|CSa -> a * a
There seems to be three conditions for this to occur:
Example:
which will produce
Playground
The
break;
ofcase 0
is unreachable since all branches of the precedingif/else
returns. This is a problem for two reasons:The text was updated successfully, but these errors were encountered: