lean4-htt/tests/lean/run/dofun_prec.lean
Leonardo de Moura 6f0192581a feat: change precedence for fun and do parsing rules to maxPrec
Motivation: avoid `$`. See new test.

cc @Kha
2020-06-11 16:24:04 -07:00

10 lines
179 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