4 ms·
In OCaml, if your pattern match is non-exhaustive, then the compiler generates example patterns that you aren't accounting for in addition to showing the missin
by ygaitonde 4y ago
In OCaml, if your pattern match is non-exhaustive, then the compiler generates example patterns that you aren't accounting for in addition to showing the missing type.
Here's an example: https://stackoverflow.com/questions/22737031/this-pattern-matching-is-not-exhaustive-in-ocaml https://stackoverflow.com/questions/22737031/this-pattern-ma...