lean4-htt/tests/pkg/misc/Misc.lean
Leonardo de Moura 2b67da2854 fix: fixes #2000
We now add the macro scope to local syntax declarations.
2023-01-03 15:28:10 -08:00

12 lines
376 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.

import Misc.Foo
import Misc.Boo
import Lean
open Lean Meta
#eval id (α := MetaM Unit) do
assert! (← getEnv).getModuleIdxFor? ``foo == (← getEnv).getModuleIdxFor? `auxDecl1
IO.println <| (← getEnv).getModuleIdxFor? ``Lean.Environment
IO.println <| (← getEnv).getModuleIdxFor? ``foo
IO.println <| (← getEnv).getModuleIdxFor? `auxDecl1
IO.println "worked"