lean4-htt/tests/lean/run/instances.lean
Leonardo de Moura fa6d35adfa chore: fix tests
2020-11-20 17:00:13 -08:00

13 lines
289 B
Text

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