2013-11-13 00:56:30 +00:00
|
|
|
Variable x : Int
|
|
|
|
|
|
|
|
(**
|
2013-11-13 21:58:51 +00:00
|
|
|
local env = get_environment()
|
2013-12-22 19:51:38 +00:00
|
|
|
ty_x = env:type_check(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)
|
|
|
|
**)
|