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

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

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..30fc229eea6f675a57da156e3492299cc58bad36
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 void Hello (long i, long j)
++      { }
++
++      public void Test (int i)
++      {
++              long j = 1 << i;
++              Hello (i, j);
++              Foo foo = delegate {
++                      long k = 5 * j;
++                      Hello (j, k);
++                      return delegate {
++                              Hello (j, k);
++                      };
++              };
++      }
++
++      static void Main ()
++      {
++              X x = new X ();
++              x.Test (3);
++      }
++}