2014-06-13 18:24:26 +00:00
|
|
|
universe u
|
|
|
|
print raw Type.{u}
|
|
|
|
namespace tst
|
|
|
|
universe v
|
|
|
|
print raw Type.{v}
|
|
|
|
print raw Type.{tst.v}
|
2014-08-07 23:59:08 +00:00
|
|
|
end tst
|
2014-06-13 18:24:26 +00:00
|
|
|
print raw Type.{tst.v}
|
|
|
|
print raw Type.{v} -- Error: alias 'v' is not available anymore
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
|
|
|
universe variable z -- Remark: this is a local universe
|
2014-06-13 18:24:26 +00:00
|
|
|
print raw Type.{z}
|
|
|
|
end
|
|
|
|
print raw Type.{z} -- Error: local universe 'z' is gone
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
|
|
|
namespace foo -- Error: we cannot create a namespace inside a section
|
2014-06-13 18:24:26 +00:00
|
|
|
end
|
|
|
|
namespace tst
|
|
|
|
print raw Type.{v} -- Remark: alias 'v' is available again
|
|
|
|
print raw Type.{u}
|
|
|
|
namespace foo
|
|
|
|
universe U
|
2014-08-07 23:59:08 +00:00
|
|
|
end foo
|
|
|
|
end tst
|
2014-06-13 18:24:26 +00:00
|
|
|
print raw Type.{tst.foo.U}
|
|
|
|
namespace tst
|
|
|
|
namespace foo
|
|
|
|
print raw Type.{v} -- Remark: alias 'v' for 'tst.v' is available again
|
|
|
|
print raw Type.{U} -- Remark: alias 'U' for 'tst.foo.U' is available again
|
2014-08-07 23:59:08 +00:00
|
|
|
end foo
|
|
|
|
end tst
|
2014-06-13 18:24:26 +00:00
|
|
|
namespace bla
|
|
|
|
universe u -- Error: we cannot shadow universe levels
|
2014-08-07 23:59:08 +00:00
|
|
|
end bla
|
2014-06-13 18:24:26 +00:00
|
|
|
print raw Type.{bla.u} -- Error: we failed to declare bla.u
|