lean4-htt/tests/lean/pureCoeIssue.lean
Leonardo de Moura 8ed3b8c55f fix: tryPureCoe?
2020-11-22 08:24:56 -08:00

15 lines
240 B
Text

def f1 (x : Nat) : IO Unit := do
IO.println x
return ()
def g1 : IO Unit := do
f1 -- Error
pure ()
def f2 (x : Nat) (y : Nat) : IO Unit := do
IO.println s!"{x} {y}"
return ()
def g2 : IO Unit := do
f2 10 -- Error
pure ()