lean4-htt/tests/lean/run/methodsRetInhabited.lean
2021-06-21 10:17:26 -07:00

17 lines
382 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

open Lean
def exec (x : MacroM α) : Option α :=
match x {
elaborator := Name.anonymous
mainModule := `Expander
currMacroScope := 0
ref := arbitrary
methods := arbitrary } { macroScope := 0 } with
| EStateM.Result.ok a s => a
| _ => none
def tst : MacroM String := do
let n ← Macro.getCurrNamespace
return toString n
#eval exec tst