[Mono-bugs] [Bug 512754] New: CS1501 When using optional parameters for method overrides
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jun 12 13:19:41 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=512754
Summary: CS1501 When using optional parameters for method
overrides
Classification: Mono
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
using System;
class A
{
public virtual int Foo (int i)
{
return i;
}
}
class B : A
{
public override int Foo (int i = 4)
{
return i;
}
}
public class C
{
public static void Main ()
{
B b = new B ();
Console.WriteLine (b.Foo ());
}
}
Actual:
0.cs(24,38): error CS1501: No overload for method `Foo' takes `0' arguments
Expected:
No error.
Note: Caused by broken membercache/overload logic, fixed in cecil branch.
--
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