mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-24 21:34:36 +03:00
9b639eee35
Names are saturated, so there might be a lambda in the term we're optimising. Fixes #62
12 lines
149 B
Idris
12 lines
149 B
Idris
myS : Nat -> Nat
|
|
myS n = S n
|
|
|
|
myS_crash : Nat -> Nat
|
|
myS_crash = S
|
|
|
|
main : IO ()
|
|
main = do
|
|
printLn (S Z)
|
|
printLn (myS Z)
|
|
printLn (myS_crash Z)
|