projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3734 from kumpera/monoclass_reorg
[mono.git]
/
mcs
/
errors
/
cs0163.cs
1
// CS0163: Control cannot fall through from one case label `case 1:' to another
2
// Line: 14
3
4
using System;
5
using System.Collections.Generic;
6
7
static class C
8
{
9
public static IEnumerable<int> Test (int key)
10
{
11
switch (key) {
12
case 1:
13
yield return 0;
14
case 2:
15
yield return 2;
16
default:
17
throw new ArgumentOutOfRangeException ("symbol:" + key);
18
}
19
}
20
}