summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0152-2.cs
blob: 368be58f22d9679c15f709a77cf251e3de7582bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS0152: The label `case 2:' already occurs in this switch statement
// Line: 19

using System;

enum E
{
	Foo = 2
}

class X
{
	void Foo (E e)
	{
		switch (e)
		{
			case E.Foo:
				break;
			case E.Foo:
				break;
		}
	}
}