Idris2/tests/chez/chez019/expected
Edwin Brady 8291c8bbeb Add runtime error for unhandled cases
Should have done this ages ago, it was much easier than I expected...
this adds an explicit error clause before running the pattern match
compiler for runtime case trees, but only if the coverage checker finds
there are missing cases.
2020-05-21 10:54:22 +01:00

7 lines
273 B
Plaintext

ERROR: Unhandled input for Main.foo at partial.idr:2:1--4:1
2
ERROR: Unhandled input for Main.lookup' at partial.idr:17:1--19:1
ERROR: Unhandled input for Main.lookup' at partial.idr:17:1--19:1
1/1: Building partial (partial.idr)
Main> Main> Main> Main> Main> Bye for now!