mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
25 lines
277 B
C#
25 lines
277 B
C#
// cs0163.cs: Control cannot fall through from one case label to another
|
|
// Line: 17
|
|
|
|
|
|
public class Foo
|
|
{
|
|
public static void Main()
|
|
{
|
|
int a=5;
|
|
int b=10;
|
|
int c;
|
|
|
|
switch (a)
|
|
{
|
|
case 1: c=a+b;
|
|
return;
|
|
|
|
case 2: c=a-b;
|
|
return;
|
|
|
|
case 3: c=a*b;
|
|
}
|
|
}
|
|
}
|