Updated with review feedback.
[mono.git] / mcs / errors / cs0152-2.cs
1 // CS0152: The label `case 2:' already occurs in this switch statement
2 // Line: 19
3
4 using System;
5
6 enum E
7 {
8         Foo = 2
9 }
10
11 class X
12 {
13         void Foo (E e)
14         {
15                 switch (e)
16                 {
17                         case E.Foo:
18                                 break;
19                         case E.Foo:
20                                 break;
21                 }
22         }
23 }