lang_2023/tests/namespaces.lang

21 lines
432 B
Text
Raw Normal View History

2023-03-31 12:10:12 +03:00
namespace Namespace {
decl something : Unit
}
namespace Array 'A {
decl something : Unit
// "static methods" of Array 'a class
}
namespace Array ('A : #Copy) {
decl something : Unit
// "static methods" of Array 'a with "copyable" 'a
}
namespace var a : Array ('A : #Copy) {
decl something : Unit
// "methods" of Array 'a (a as array instance) with "copyable" 'a
}
// ?? what to do with const/public/... methods ??