10 lines
175 B
Text
10 lines
175 B
Text
|
|
def tst (x : Nat) : IO Unit := do
|
|
if x == 0 then
|
|
IO.println "x is zero"
|
|
else
|
|
if x == 1 then
|
|
IO.println "x is one"
|
|
throw $ IO.userError "x is not zero"
|
|
|
|
#eval tst 0
|