[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0837-2.cs
1 // CS0837: The `as' operator cannot be applied to a lambda expression, anonymous method, or method group
2 // Line: 14
3
4 class X
5 {
6         delegate void D ();
7         
8         static void Test (D d)
9         {
10         }
11         
12         static void Main ()
13         {
14                 Test ((() => { }) as D);
15         }
16 }