projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3585 from lateralusX/jlorenss/win-counter-warning
[mono.git]
/
mcs
/
errors
/
cs0165-23.cs
1
// CS0165: Use of unassigned local variable `retval'
2
// Line: 9
3
4
class Test
5
{
6
static string DoStuff (string msg)
7
{
8
string retval;
9
10
switch (msg) {
11
case "hello":
12
retval = "goodbye";
13
return retval;
14
case "goodbye":
15
return retval;
16
case "other":
17
retval = "other";
18
case "":
19
return msg;
20
}
21
return "";
22
}
23
}