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

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

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..96aff697d74b2c8c4496cc6a8f25f07ce3dfb6d7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,32 @@@
++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);
++                      };
++              };
++              Simple simple = foo ();
++              simple ();
++      }
++
++      static void Main ()
++      {
++              X x = new X ();
++              x.Test (3);
++      }
++}