mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +03:00
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)
|