mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 12:42:02 +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.
6 lines
140 B
Plaintext
6 lines
140 B
Plaintext
:exec main
|
|
:exec printLn $ lookup (FS FZ) [1,2,3,4]
|
|
:exec printLn $ lookup' (FS FZ) [1,2,3,4]
|
|
:exec printLn $ lookup'' (FS FZ) [1,2,3,4]
|
|
:q
|