lean4-htt/tests/lean/moduleOf.lean
Leonardo de Moura f0992c7022 chore: fix tests
2021-01-11 13:01:04 -08:00

16 lines
429 B
Text

import Lean
def f (x : Nat) := x + x
open Lean
def tst : MetaM Unit := do
IO.println (← findModuleOf? `HAdd.hAdd)
IO.println (← findModuleOf? `Lean.Core.CoreM)
IO.println (← findModuleOf? `Lean.Elab.Term.elabTerm)
IO.println (← findModuleOf? `Std.HashMap.insert)
IO.println (← findModuleOf? `tst)
IO.println (← findModuleOf? `f)
IO.println (← findModuleOf? `foo) -- Error: unknown 'foo'
#eval tst