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; } } }