fix(tests/lean/run/IO2): bad overload

This commit is contained in:
Leonardo de Moura 2016-09-23 09:34:19 -07:00
parent 9a1ef1cc0d
commit 015c667eae

View file

@ -6,8 +6,8 @@ open list
since unit is at Type₁
-/
definition for {A : Type} {B : Type} : list A → (A → IO B) → IO poly_unit
definition foreach {A : Type} {B : Type} : list A → (A → IO B) → IO poly_unit
| [] f := return poly_unit.star
| (x::xs) f := do f x, for xs f
| (x::xs) f := do f x, foreach xs f
vm_eval for [1,2,3,4,5] (λ i, do put_str "value: ", put_nat i, put_str "\n")
vm_eval foreach [1,2,3,4,5] (λ i, do put_str "value: ", put_nat i, put_str "\n")