lean4-htt/tests/lean/run/core.lean
Leonardo de Moura e4a3b434d7 chore: moving tests to new frontend
@Kha The transition has begun :)
I found and fixed a few bugs, but it is going well so far.
2020-09-10 18:00:34 -07:00

19 lines
307 B
Text

import Lean.CoreM
new_frontend
open Lean
open Lean.Core
def f : CoreM Nat := do {
env ← getEnv;
cinfo ← getConstInfo `Nat.add;
trace! `Elab "trace message";
liftIO $ IO.println $ toString cinfo.type;
liftIO $ IO.println "testing...";
pure 10
}
#eval f
set_option trace.Elab true
#eval f