[MacSDK] Bump libgdiplus to latest (#4984)
[mono.git] / mcs / errors / cs0815-7.cs
1 // CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
2 // Line: 8
3 // Compiler options: -langversion:experimental
4
5 class X
6 {
7         public static void Main ()
8         {
9                 Foo (out var x = Main ());
10         }
11
12         static void Foo (out int i)
13         {
14                 i = 0;
15         }
16 }