summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0844-5.cs
blob: dc7efa770f442cd5706f949876c16aeb8b4ede7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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
{
	string s {
		set {}
	}

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