summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0128.cs
blob: fcdd1627c664ac83b1d2c2156f2deca99c6770ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0128: A local variable named `x' is already defined in this scope
// Line: 8

class x {
	static int y ()
	{
		int x = 1;
		int x = 2;

		return x + x;
	}
}