summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0219-3.cs
blob: 15fd2eedc6579610e5cbb2fc0f55a77520c7a3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0219: The variable `o' is assigned but its value is never used
// Line: 10
// Compiler options: -warn:3 -warnaserror

public class MyClass2
{
	static public bool b;
	static public void Main ()
	{
		object o;
		if (b)
			o = null;
	}
}