lean4-htt/tests/lean/run/instuniv.lean
Leonardo de Moura 8e81db0d2b chore: add temporary workaround to tests
We will remove it after we implement `doMatch`
2020-09-27 06:58:10 -07:00

14 lines
412 B
Text

import Lean
new_frontend
open Lean
unsafe def tst : IO Unit :=
withImportModules [{module := `Init.Data.Array}] 0 fun env =>
match env.find? `Array.foldl with
| some info => do
IO.println (info.instantiateTypeLevelParams [levelZero, levelZero]);
IO.println (info.instantiateValueLevelParams [levelZero, levelZero]);
pure ()
| none => IO.println ("Array.foldl not found")
#eval tst