[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8155.cs
1 // CS8155: Lambda expressions that return by reference cannot be converted to expression trees
2 // Line: 14
3
4 using System.Linq.Expressions;
5
6 class TestClass
7 {
8     static int x;
9
10     delegate ref int D ();
11
12     static void Main ()
13     {
14         Expression<D> e = () => ref x;
15     }
16 }