repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-06-26 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs0177-6.cs
blob
23ccd994c02b7ef20db7d18ce9033ac6a6337b89
1
// cs0177-6.cs: The out parameter `a' must be assigned to before control leaves the current method
2
// Line: 21
3
4
using
System
;
5
6
class
OutputParam
7
{
8
public static void
Main
(
string
[]
args
)
9
{
10
int
a
;
11
Method
(
out
a
);
12
Console
.
WriteLine
(
a
);
13
}
14
15
public static void
Method
(
out int
a
)
16
{
17
int
b
;
18
19
try
{
20
b
=
5
;
21
return
;
22
}
catch
(
Exception
)
{ throw; }
23
24
a
=
b
;
25
}
26
}