projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5010 from Unity-Technologies/boehm-gc-alloc-fixed-sre
[mono.git]
/
mcs
/
errors
/
cs0165-22.cs
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