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