mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 08:11:45 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
9 lines
137 B
Idris
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)
|