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

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

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5a8ba9d9223001c943beb1fc28829ea26965740b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,30 @@@
++using System;
++
++delegate void Simple ();
++
++delegate Simple Foo ();
++
++class X
++{
++      public static void Hello (long k)
++      { }
++
++      public static void Test (int i)
++      {
++              Hello (3);
++              Foo foo = delegate {
++                      Hello (4);
++                      return delegate {
++                              Hello (5);
++                      };
++              };
++              Simple simple = foo ();
++              simple ();
++      }
++
++      static void Main ()
++      {
++              X x = new X ();
++              X.Test (3);
++      }
++}