[mcs] C#7 out variable declaration
[mono.git] / mcs / errors / cs0128-3.cs
1 // CS0128: A local variable named `x' is already defined in this scope
2 // Line: 9
3
4 class X
5 {
6         public static void Main ()
7         {
8                 Foo (out int x);
9                 Foo (out int x);
10         }
11
12         static void Foo (out int arg)
13         {
14                 arg = 2;
15         }
16 }