2013-11-13 00:56:30 +00:00
|
|
|
Variable x : Int
|
|
|
|
|
|
|
|
(**
|
2013-11-13 21:58:51 +00:00
|
|
|
local env = get_environment()
|
|
|
|
ty_x = env:check_type(Const("x"))
|
2013-11-13 00:56:30 +00:00
|
|
|
c = context()
|
|
|
|
c = context(c, "x", ty_x)
|
|
|
|
c = context(c, "y", ty_x)
|
|
|
|
print(c)
|
2013-11-13 21:58:51 +00:00
|
|
|
o = env:find_object("x")
|
2013-11-13 00:56:30 +00:00
|
|
|
print(o)
|
2013-11-13 21:58:51 +00:00
|
|
|
o = env:find_object("y")
|
2013-11-13 00:56:30 +00:00
|
|
|
print(o)
|
|
|
|
**)
|