summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0844-2.cs
blob: c8272ccb10fe93bc9709270aad65b3ad49d567ea (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0844: A local variable `y' cannot be used before it is declared. Consider renaming the local variable when it hides the member `X.y'
// Line: 8

class X
{
	static int y;
	static void Main () {
		y = 10;
		int y = 5;
	}
}