[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs8207.cs
blob31090948b4579037097550c0406bc0c1ceb4e881
1 // CS8207: An expression tree cannot contain a discard
2 // Line: 11
4 using System;
5 using System.Linq.Expressions;
7 class X
9 void Test ()
11 Expression<Func<bool>> e = () => TryGetValue (out _);
14 bool TryGetValue (out int arg)
16 arg = 3;
17 return true;