Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
elseIfConfusion.lean
blob: dba0197e61376b9b3f4ed34d1dd455d786ce871e [
file
]
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"
/--
info
:
x
is
zero
-/
#guard_msgs in
#eval tst 0