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-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0165-8.cs
blob
b6f8ddd5dc3283769d8bc5dbd36a1d452713c9e9
1
// cs0165-8.cs: Use of unassigned local variable `service'
2
// Line: 17
3
using
System
;
4
5
public class
Foo
6
{
7
static void
Main
()
8
{
9
int
service
;
10
11
foreach
(
char
b
in
"hola"
) {
12
Console
.
WriteLine
(
b
);
13
service
=
1
;
14
break
;
15
}
16
17
Console
.
WriteLine
(
service
);
18
}
19
}