lean2/tests/lua/glvl1.lua

10 lines
263 B
Lua
Raw Normal View History

local env = environment()
env = env:add_global_level("u")
env = env:add_global_level("v")
assert(env:is_global_level("u"))
env:export("glvl1_mod.olean")
local env2 = import_modules("glvl1_mod")
assert(env2:is_global_level("u"))
assert(env2:is_global_level("v"))