[Mono-bugs] [Bug 336258] [Flow-analysis] of switch statement inside anonymous method is broken
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jan 7 12:30:25 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=336258
http://bugzilla.novell.com/show_bug.cgi?id=336258#c7
Jonathan Pryor <jpryor at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jpryor at novell.com
--- Comment #7 from Jonathan Pryor <jpryor at novell.com> 2010-01-07 17:30:23 UTC ---
This also happens in iterator methods, e.g.
static IEnumerable<string> Foo(params string[] bars)
{
foreach (var s in bars) {
switch (s) {
case "Foo":
case "Bar":
case "Baz":
yield return s;
}
}
}
results in:
error CS0163: Control cannot fall through from one case label to another
--
Configure bugmail: http://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