This PR ensures that environments can be loaded, repeatedly, without executing arbitrary code
16 lines
360 B
Text
16 lines
360 B
Text
import UserAttr.Tst
|
|
|
|
open Lean
|
|
|
|
def tst : MetaM Unit := do
|
|
let env ← getEnv
|
|
assert! (blaAttr.hasTag env `f)
|
|
assert! (blaAttr.hasTag env `g)
|
|
assert! !(blaAttr.hasTag env `id)
|
|
pure ()
|
|
|
|
#eval tst
|
|
|
|
unsafe def main : IO Unit := do
|
|
initSearchPath (← Lean.findSysroot)
|
|
withImportModules #[{ module := `UserAttr.Tst : Import }] {} fun env => pure ()
|