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
switch x {
|A -> /* Handle this case */|B -> /* Handle this case */|_ -> . /* States (with a check by the type system) that this case isn't possible */
}
The text was updated successfully, but these errors were encountered:
Surprised to see that this still isn't supported. Are there any workarounds for this? I've tried various forms of type annotations, but that doesn't seem to be sufficient. I guess I could either disable warning 8 or just convert the whole module implementation to OCaml.
http://caml.inria.fr/pub/docs/manual-ocaml/extn.html#sec238 -- see the subsection titled "Refutation cases and redundancy"
Something along the lines of:
The text was updated successfully, but these errors were encountered: