[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs0165-23.cs
blob8c947a2af53dca26b38c866ce4e8038131c831bf
1 // CS0165: Use of unassigned local variable `retval'
2 // Line: 9
4 class Test
6 static string DoStuff (string msg)
8 string retval;
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;
21 return "";