Idris2/tests/chez/chez019/input
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

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