Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / errors / cs8046.cs
blob3335e29c4b15e844a86df6cb35db53a04ea384bc
1 // CS8046: An expression tree cannot contain a declaration expression
2 // Line: 11
3 // Compiler options: -langversion:experimental
5 using System;
6 using System.Linq.Expressions;
8 class C
10 static void Main()
12 Expression<Func<bool>> e = () => Out (out int x);
15 static bool Out (out int value)
17 value = 3;
18 return true;