[man] Add entries for sgen modes and new major/minor types
[mono.git] / mcs / errors / cs8047.cs
1 // CS8047: Declaration expression cannot be used in this context
2 // Line: 8
3 // Compiler options: -langversion:experimental
4
5 public class C
6 {
7         public static void Main ()
8         {
9                 dynamic target = 3;
10                 var x = new Test (target, out var y);
11         }
12 }
13
14 class Test
15 {
16         public Test (int x, out int y)
17         {
18                 y = 0;
19         }
20 }