mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-19 02:41:43 +03:00
da293d1ce8
This is necessary to build case trees correctly, and without this, we can get mysterious and hard to debug run time errors!
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)
|