summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0162-15.cs
blob: 02459c9052bf80bcf340c8bf7551ca16880cba83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0162: Unreachable code detected
// Line: 10
// Compiler options: -warnaserror

class C
{
	void Test (int a)
	{
		return;
		if (a > 0) {
			int x = a + 20;
			return;
		}
	}
}