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
[bcl] Update BCL Linked Size
[mono-project.git]
/
mcs
/
errors
/
cs0165-22.cs
blob
6b76beba2f98dd8b1b67ea05e7aa2cfae6b2a131
1
// CS0165: Use of unassigned local variable `x'
2
// Line: 17
3
4
using
System
;
5
6
class
Program
7
{
8
static int
Main
()
9
{
10
int
foo
=
9
;
11
int
x
;
12
13
switch
(
foo
) {
14
case
1
:
15
x
=
1
;
16
gotoTarget
:
17
{
18
Console
.
WriteLine
(
x
);
19
}
20
break
;
21
default
:
22
{
23
if
(
foo
!=
0
) {
24
goto
gotoTarget
;
25
}
26
27
break
;
28
}
29
}
30
31
return
1
;
32
}
33
}
34