codegen: Limit scope of locals freed on errors thrown from catch clauses
[vala-lang.git] / tests / namespaces.vala
blobb35db592744eccc1ddae442a23e0a74ae548ab54
1 using Foo.Sub;
3 public class GlobalTestClass {
4 public GlobalTestClass() {
8 namespace Maman {
9 static int main () {
10 stdout.printf ("Namespace Test\n");
12 Bar.run ();
14 new GlobalTestClass();
16 var obj = new ClassInNestedNamespace ();
18 return 0;
21 class Bar : Object {
22 public static void run () {
23 stdout.printf ("Class in Namespace Test\n");
28 public class Foo.Sub.ClassInNestedNamespace {
32 void main () {
33 Maman.main ();