2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
|
|
|
variable x : Int
|
2013-11-13 00:56:30 +00:00
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
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)
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|