summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-47.cs
blob: 160daa2423855b9c091ccce4646865dcdd968e4f (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: 17

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) {
			System.Console.WriteLine (a);
		}
	}
}