[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs8155.cs
blob45d8b4e414ab535b57d4570fa3846a5044ebcb5c
1 // CS8155: Lambda expressions that return by reference cannot be converted to expression trees
2 // Line: 14
4 using System.Linq.Expressions;
6 class TestClass
8 static int x;
10 delegate ref int D ();
12 static void Main ()
14 Expression<D> e = () => ref x;