chore: fix tests

This commit is contained in:
Leonardo de Moura 2020-11-20 17:00:13 -08:00
parent 8dfb0324c5
commit fa6d35adfa
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,9 @@ open Lean.Meta
unsafe def tst1 : IO Unit :=
withImportModules [{module := `Lean}] {} 0 fun env => do
let insts := env.getGlobalInstances;
IO.println (format insts)
let aux : MetaM Unit := do
let insts ← getGlobalInstancesIndex
IO.println (format insts)
discard <| aux.run |>.toIO {} { env := env }
#eval tst1

View file

@ -233,7 +233,7 @@ do print "----- tst14 -----";
let stateM ← mkStateM nat;
print stateM;
let monad ← mkMonad stateM;
let globalInsts ← getGlobalInstances;
let globalInsts ← getGlobalInstancesIndex;
let insts ← globalInsts.getUnify monad;
print insts;
pure ()