[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs0815-7.cs
blobaf3d10f8c6c370899609d93bd528f2d509f7d065
1 // CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
2 // Line: 8
3 // Compiler options: -langversion:experimental
5 class X
7 public static void Main ()
9 Foo (out var x = Main ());
12 static void Foo (out int i)
14 i = 0;