projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C#7 throw expression
[mono.git]
/
mcs
/
tests
/
test-anon-167.cs
1
public class Foo
2
{
3
static void Bar (System.Threading.ThreadStart ts)
4
{
5
}
6
7
static void Baz (int yy)
8
{
9
}
10
11
public static void Main ()
12
{
13
Bar (delegate {
14
foreach (string x in new string[] { "x" }) {
15
int yy;
16
switch (x) {
17
case "x": yy = 1; break;
18
default: continue;
19
}
20
Baz (yy);
21
}
22
});
23
}
24
}