repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[loader] LoadFrom of problematic images should reprobe
[mono-project.git]
/
mcs
/
errors
/
cs0177-15.cs
blob
310f40523b4e8657b26ea7b9140975c0d5a41a77
1
// CS0177: The out parameter `x' must be assigned to before control leaves the current method
2
// Line: 6
3
4
public class
GotoWithOut
5
{
6
public static void
Test
(
bool
cond
,
out int
x
)
7
{
8
if
(
cond
)
9
{
10
goto
Label2
;
11
}
12
else
13
{
14
goto
Label
;
15
}
16
Label
:
17
x
=
0
;
18
Label2
:
19
return
;
20
}
21
}