2015-01-13 10:44:36 +00:00
|
|
|
// CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
|
|
|
|
// Line: 8
|
2015-04-07 09:35:12 +01:00
|
|
|
// Compiler options: -langversion:experimental
|
2015-01-13 10:44:36 +00:00
|
|
|
|
|
|
|
class X
|
|
|
|
{
|
|
|
|
public static void Main ()
|
|
|
|
{
|
|
|
|
Foo (out var x = Main ());
|
|
|
|
}
|
|
|
|
|
|
|
|
static void Foo (out int i)
|
|
|
|
{
|
|
|
|
i = 0;
|
|
|
|
}
|
|
|
|
}
|