[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs1677-2.cs
1 // CS1677: Parameter `1' should not be declared with the `ref' keyword
2 // Line: 9
3
4
5 delegate void D (int x);
6
7 class X
8 {
9         static void Main ()
10         {
11                 D d2 = (ref int x) => {};
12         }
13 }