[mcs] C#7 out variable declaration
[mono.git] / mcs / errors / cs8200.cs
1 // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers
2 // Line: 11
3
4 public class C
5 {
6         public C (bool value)
7         {               
8         }
9
10         public C ()
11                 : this (Foo (out int arg))
12         {       
13         }
14
15         static bool Foo (out int arg)
16         {
17                 arg = 2;
18                 return false;
19         }
20 }