[Mono-bugs] [Bug 336258] New: Flow-analysis of switch statement inside anonymous method is broken
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Oct 24 06:22:35 EDT 2007
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: rharinath at novell.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list