mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 00:31:57 +03:00
8291c8bbeb
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.
7 lines
273 B
Plaintext
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!
|