diff options
author | Alejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com> | 2002-12-21 22:07:54 +0300 |
---|---|---|
committer | Alejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com> | 2002-12-21 22:07:54 +0300 |
commit | 706b7b3304c75e1b06c48de102b49bb8534d767b (patch) | |
tree | 3c4c320c8011a1feab87c8c3ee429a0bf792709a /mcs/errors/cs0163.cs | |
parent | e587984615ea608380ff1d6782d08d0b705ca392 (diff) |
Added cs0163.cs test error.
svn path=/trunk/mcs/; revision=9819
Diffstat (limited to 'mcs/errors/cs0163.cs')
-rw-r--r-- | mcs/errors/cs0163.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/errors/cs0163.cs b/mcs/errors/cs0163.cs new file mode 100644 index 00000000000..bdf2f9b8a58 --- /dev/null +++ b/mcs/errors/cs0163.cs @@ -0,0 +1,24 @@ +// 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; + } + } +} |