Merge pull request #1109 from adbre/iss358
[mono.git] / mcs / errors / cs0163.cs
1 // CS0163: Control cannot fall through from one case label `case 3:' to another
2 // Line: 21
3
4 public class Foo
5 {
6         public static void Main()
7         {
8                 int a=5;
9                 int b=10;
10                 int c;
11                 
12                 switch (a)
13                 {
14                         case 1: c=a+b;
15                                 return;
16
17                         case 2: c=a-b;
18                                 return;
19
20                         case 3: c=a*b;
21                 }
22         }
23 }