New test.
authorMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:42:29 +0000 (20:42 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:42:29 +0000 (20:42 -0000)
svn path=/trunk/mcs/; revision=66245

1  2 
mcs/tests/test-anon-44.cs

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8963a063715989f34a2deb3e1083bd0be2f5a076
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,40 @@@
++using System;
++
++delegate void Simple ();
++
++delegate Simple Foo ();
++
++class X
++{
++      public void Hello (long k)
++      { }
++
++      public void Test (int i)
++      {
++              Hello (3);
++              Foo foo = delegate {
++                      int a = i;
++                      Hello (4);
++                      return delegate {
++                              int b = a;
++                              Hello (5);
++                      };
++              };
++              Foo bar = delegate {
++                      int c = i;
++                      Hello (6);
++                      return delegate {
++                              int d = i;
++                              Hello (7);
++                      };
++              };
++              Simple simple = foo ();
++              simple ();
++      }
++
++      static void Main ()
++      {
++              X x = new X ();
++              x.Test (3);
++      }
++}