Idris2/tests/idris2/basic030/arity.idr
Edwin Brady a972778eab Add test script
They don't all pass yet, for minor reasons. Coming shortly...
Unfortunately the startup overhead for chez is really noticeable here!
2020-05-19 18:25:18 +01: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)