Idris2-boot/tests/idris2/reg009/Case.idr
Edwin Brady c1bc4330fa Don't build run time case trees for Rig0 defs
They might match on runtime-erased things (which is okay, since they're
erased too!) and if we try building the tree, it'll report an error
incorrectly. Fixes #229
2020-03-18 20:09:11 +00:00

7 lines
139 B
Idris

import Decidable.Equality
0 foo : (i, j : Nat) -> Bool
foo i j = case decEq i j of
Yes pf => True
No pf => False