summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0841-5.cs
blob: 8872ce40389e8701988fec1dd226606143890cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0841: A local variable `x' cannot be used before it is declared
// Line: 8
// Compiler options: -langversion:experimental

class X
{
	public static void Main ()
	{
		Foo (x, out var x);
	}

	static void Foo (int arg, out int value)
	{
		value = 3;
	}
}