[mcs] C#7 out variable declaration
[mono.git] / mcs / errors / cs8197.cs
1 // CS8197: Cannot infer the type of implicitly-typed out variable `y'
2 // Line: 9
3
4 public class C
5 {
6         public static void Main ()
7         {
8                 dynamic target = 3;
9                 var x = new Test (target, out var y);
10         }
11 }
12
13 class Test
14 {
15         public Test (int x, out int y)
16         {
17                 y = 0;
18         }
19 }