chore: fix tests

This commit is contained in:
Leonardo de Moura 2019-11-26 18:07:13 -08:00
parent e45211f31c
commit a5cf1ac5ae
3 changed files with 4 additions and 4 deletions

View file

@ -8,4 +8,4 @@ if strictOr (C == 0) (spin b) then "hello"
else "world"
def main (xs : List String) : IO Unit :=
IO.println (f xs.head!.toNat)
IO.println (f 0)

View file

@ -3,6 +3,6 @@ phashmap_inst_coherence.lean:11:0: error: type mismatch at application
term
m
has type
@PersistentHashMap Nat Nat Nat.Hashable (@beqOfEq Nat Nat.DecidableEq)
@PersistentHashMap Nat Nat Nat.Hashable (@beqOfEq Nat (λ (ab : Nat), Nat.DecidableEq a b))
but is expected to have type
@PersistentHashMap Nat Nat natDiffHash (@beqOfEq Nat Nat.DecidableEq)
@PersistentHashMap Nat Nat natDiffHash (@beqOfEq Nat (λ (ab : Nat), Nat.DecidableEq a b))

View file

@ -62,7 +62,7 @@ def hasDecEq : ∀ (a b : Nat), Decidable (a = b)
| isFalse xney => isFalse (fun h => Nat.noConfusion h (fun xeqy => absurd xeqy xney))
instance : DecidableEq :=
{decEq := hasDecEq}
hasDecEq
def repeat.{u} {α : Type u} (f : αα) : αα
| 0, a => a