lang_2023/tests/namespaces.lang
ProgramSnail 0d62ae0814 debug
2023-03-31 12:10:12 +03:00

20 lines
432 B
Text

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 ??