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

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

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..914f90b0297b66b85127df60713bd283c87fc7f8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,32 @@@
++using System;
++
++public delegate void Foo ();
++
++class Test
++{
++      public Test (int a)
++      {
++              Foo foo = delegate {
++                      Console.WriteLine (a);
++              };
++              foo ();
++      }
++
++      static Test ()
++      {
++              int a = 5;
++              Foo foo = delegate {
++                      Console.WriteLine (a);
++              };
++              foo ();
++      }
++}
++
++class X
++{
++      static void Main ()
++      {
++              Test test = new Test (9);
++              Console.WriteLine (test);
++      }
++}