https://bugzilla.novell.com/show_bug.cgi?id=336258
Summary: Flow-analysis of switch statement inside anonymous
method is broken
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
using System.Text.RegularExpressions;
using System;
class C
{
public static void Main ()
{
new Regex ("").Replace ("aaaa", delegate (Match m) {
switch (m.Length) {
case 5:
return "5";
default:
return null;
}
});
}
}
Actual:
B.cs(8,49): error CS1643: Not all code paths return a value in anonymous method
of type `System.Text.RegularExpressions.MatchEvaluator'
Expected:
No error
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs