lean4-htt/tests/lean/run/methodsRetInhabited.lean
Leonardo de Moura 189f4bd372 chore: fix tests
2022-01-15 12:18:09 -08:00

16 lines
343 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 {
mainModule := `Expander
currMacroScope := 0
ref := default
methods := default } { 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