[Mono-bugs] [Bug 401020] New: Attempts to call overloaded method with unsuitable argument when suitable method is available

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 17 14:50:55 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=401020


           Summary: Attempts to call overloaded method with unsuitable
                    argument when suitable method is available
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: x86
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: milkob at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


using System.Collections;
using System.Collections.Generic;

class Foo
{
  void Open(IList a) {
    return 0;
  }

  void Open(out ArrayList a) {
    a = null;
    Open((IList)a); // this calls Open(IList)
    Open(a);        // attempts to call Open(out ArrayList) and fails with 
                    // compile error while "csc" calls Open(IList)
  }

}


-- 
Configure bugmail: https://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