lean2/tests/lean/mod1.lean
Leonardo de Moura 69be5f6c94 feat(kernel/environment): track which modules were already imported
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-17 18:15:44 -08:00

14 lines
No EOL
310 B
Text

Import "simple.lean"
Import "simple.lean"
(**
local env = environment() -- create new environment
parse_lean_cmds([[
Import "simple.lean"
Import "simple.lean"
Check x + y
Variable z : Int
Check z
]], env)
-- Remark: z is not defined in the main environment
**)
Check z