Merge pull request #4967 from kumpera/profiler-arg-cleanup
[mono.git] / mcs / errors / cs8198.cs
1 // CS8198: An expression tree cannot contain out variable declaration
2 // Line: 11
3
4 using System;
5 using System.Linq.Expressions;
6
7 class C
8 {
9         static void Main()
10         {
11                 Expression<Func<bool>> e = () => Out (out int x);
12         }
13
14         static bool Out (out int value)
15         {
16                 value = 3;
17                 return true;
18         }
19 }