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

class C
{
	const string s = "s";

	public void Test ()
	{
		s = "x";
		string s = "a";
	}
}