Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs8155.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45d8b4e414ab535b57d4570fa3846a5044ebcb5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS8155: Lambda expressions that return by reference cannot be converted to expression trees
// Line: 14

using System.Linq.Expressions;

class TestClass
{
    static int x;

    delegate ref int D ();

    static void Main ()
    {
        Expression<D> e = () => ref x;
    }
}