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

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

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