mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 16:21:46 +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)
|