lean2/tests/lean/lua8.lean
Leonardo de Moura 8c52d47692 chore(lua): rename env() to get_env()
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-13 13:58:51 -08:00

14 lines
No EOL
232 B
Text

Variable x : Int
(**
local env = get_environment()
ty_x = env:check_type(Const("x"))
c = context()
c = context(c, "x", ty_x)
c = context(c, "y", ty_x)
print(c)
o = env:find_object("x")
print(o)
o = env:find_object("y")
print(o)
**)