summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0841-2.cs
blob: 8cf05e8ee1968deaff2c713a3f546dec7069590b (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0841: A local variable `y' cannot be used before it is declared
// Line: 8

public class C
{
	public static void Main ()
	{
	    int x = y;
	    int y = 1;
	}
}