Idris2-boot/tests/idris2/basic030/arity.idr
Edwin Brady da293d1ce8 Check constructors are fully applied in case trees
This is necessary to build case trees correctly, and without this, we
can get mysterious and hard to debug run time errors!
2020-01-11 17:27:27 +00:00

9 lines
137 B
Idris

data MyN = MkN Nat Nat
foo : Nat -> Nat -> Nat
foo x y = case MkN x of
MkN z => y
main : IO ()
main = printLn (foo 2 2)