lean4-htt/tests/lean/run/dofun_prec.lean
2020-09-29 18:22:34 -07:00

10 lines
178 B
Text

new_frontend
def tst1 (x : Nat) : IO Unit :=
when (x > 0) do
IO.println "hello"
IO.println "world"
def tst2 (xs : List Nat) : IO Unit :=
xs.forM fun x => do
IO.println x