lean2/tests/lean/lua8.lean
Leonardo de Moura 7726ccad28 chore(builtin): rename nat, int and real modules to Nat, Int and Real.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-01 13:52:25 -08:00

15 lines
No EOL
244 B
Text

Import Int.
Variable x : Int
(**
local env = get_environment()
ty_x = env:type_check(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)
**)