Bugzilla – Bug 566628
2.6.1 miscompiles ironpython binascii.cs
Last modified: 2010-01-07 16:57:15 UTC
Compiling IronPython 2.6 with mono 2.6.1 I get this message: binascii.cs(129,57): error CS1643: Not all code paths return a value in anonymous method of type `IronPython.Modules.PythonBinaryAscii.EncodeChar' The code looks valid, and I could compile it after extracting to the separate file.
Testcase: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< using System; using System.Text; public class Tests { private delegate char EncodeChar(int val); private static StringBuilder EncodeWorker(string data, char empty, EncodeChar encFunc) { return null; } public static void Main() { EncodeWorker ("", ' ', delegate(int val) { switch (val) { default: throw new InvalidOperationException(String.Format("Bad int val: {0}", val)); } }); } } >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
duplicate *** This bug has been marked as a duplicate of bug 336258 ***