Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs8200-2.cs
1 // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers
2 // Line: 6
3
4 public class C
5 {
6         bool res = Foo (out int arg);
7
8         static bool Foo (out int arg)
9         {
10                 arg = 2;
11                 return false;
12         }
13 }