tests: Move namespaces.vala into parser and merge its main methods
[vala-gnome.git] / tests / parser / namespaces.vala
blobaae68838ff582fd1959981d2922c34a26ff82d74
1 using Foo.Sub;
3 public class GlobalTestClass {
4 public GlobalTestClass() {
8 namespace Maman {
9 static void run () {
10 stdout.printf ("Namespace Test\n");
12 Bar.run ();
14 new GlobalTestClass();
16 var obj = new ClassInNestedNamespace ();
19 class Bar : Object {
20 public static void run () {
21 stdout.printf ("Class in Namespace Test\n");
26 public class Foo.Sub.ClassInNestedNamespace {
29 void main () {
30 Maman.run ();