summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-46.cs
blob: b9fc087b1afed8210dac912dacfad6f73720ea8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0165: Use of unassigned local variable `a'
// Line: 16

class Test
{
	public static bool Foo (out int v)
	{
		v = 0;
		return false;
	}

	static void Main()
	{
		int a;
		bool b = false;
		if ((b || Foo (out a)) && b)
			return;
		else
			System.Console.WriteLine (a);
	}
}