Bug 566628 - 2.6.1 miscompiles ironpython binascii.cs
Summary: 2.6.1 miscompiles ironpython binascii.cs
Status: RESOLVED DUPLICATE of bug 336258
Alias: None
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 2.6.x
Hardware: i686 Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-22 08:26 UTC by Andrey Rahmatullin
Modified: 2010-01-07 16:57 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Rahmatullin 2009-12-22 08:26:10 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.
Comment 1 Forgotten User vxPDddArjq 2009-12-24 22:50:32 UTC
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));
			}
			});
	}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Comment 2 Marek Safar 2010-01-07 16:57:15 UTC
duplicate

*** This bug has been marked as a duplicate of bug 336258 ***