[Mono-bugs] [Bug 619904] New: Code is compiled incorrectly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 5 10:48:52 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=619904
http://bugzilla.novell.com/show_bug.cgi?id=619904#c0
Summary: Code is compiled incorrectly
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: amcgovern at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
The following program is compiled incorrectly with r159898 of mono/mcs. The IL
does a ldarg.0 on a static method with no arguments.
using System;
class Program
{
public class BaseClass
{
public virtual void Print () { Console.WriteLine ("BaseClass.Print"); }
}
public class Derived : BaseClass
{
public override void Print ()
{
Action a = () => base.Print ();
a ();
}
}
public static void Main (string [] args)
{
var d = new Derived ();
d.Print ();
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list