b0f1ba78b01cef3f5ba58e04d0da2cef7b9093fd
[mono.git] / mcs / errors / cs1677-2.cs
1 // cs1677-2.cs: Parameter `1' should not be declared with the `ref' keyword
2 // Line: 11
3 //
4 // The delegate has an explicit signature, so it can not be assigned.
5 //
6 delegate void D (int x);
7
8 class X {
9         static void Main ()
10         {
11                 D d2 = delegate (ref int x) {};
12         }
13 }