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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to