Merge pull request #1410 from alesliehughes/master
[mono.git] / mcs / errors / cs8046.cs
1 // CS8046: An expression tree cannot contain a declaration expression
2 // Line: 11
3 // Compiler options: -langversion:experimental
4
5 using System;
6 using System.Linq.Expressions;
7
8 class C
9 {
10         static void Main()
11         {
12                 Expression<Func<bool>> e = () => Out (out int x);
13         }
14
15         static bool Out (out int value)
16         {
17                 value = 3;
18                 return true;
19         }
20 }