Idris2/tests/idris2/basic030/arity.idr

9 lines
137 B
Idris
Raw Normal View History

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)