Remove code moved to shared partition
[mono-project.git] / mcs / errors / cs8153.cs
blobd36f110208fd6ca5eefcc7fdfa3734df2b027b23
1 // CS8153: An expression tree lambda cannot contain a call to a method, property, or indexer that returns by reference
2 // Line: 11
4 using System;
5 using System.Linq.Expressions;
7 class X
9 void Foo ()
11 Expression<Func<int>> e = () => Test (ref this[0]);
14 static int Test (ref int y)
16 return y;
19 ref int this [int y] {
20 get {
21 throw null;