projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3609 from xmcclure/checked-imageset
[mono.git]
/
mcs
/
errors
/
cs0165-52.cs
1
// CS0165: Use of unassigned local variable `x'
2
// Line: 21
3
4
using System;
5
6
class X
7
{
8
static bool Foo (out int x)
9
{
10
x = 5;
11
return false;
12
}
13
14
public static int Main ()
15
{
16
int x;
17
try {
18
throw new ApplicationException ();
19
} catch when (Foo (out x)) {
20
return 1;
21
} catch when (x > 0) {
22
return 0;
23
}
24
}
25
}