New test.
[mono.git] / mcs / errors / cs1628.cs
1 // cs1628.cs: Cannot use ref or out parameter `a' inside an anonymous method block
2 // Line: 15
3 using System;
4
5 delegate void D ();
6
7 class X {
8         static void Main ()
9         {
10         }
11
12         static void Host (ref int a)
13         {
14                 D b = delegate {
15                         a = 1;
16                 };
17         }
18 }