https://bugzilla.novell.com/show_bug.cgi?id=442579
Summary: Overload resolution problem
Product: Mono: Compilers
Version: SVN
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: ---
SVN r118167.
Testcase:
using System.Collections.Generic;
public class Expression {
public static void Block(params Expression[] expressions) {}
public static void Block(IEnumerable<ParameterExpression> variables, params
Expression[] expressions) {}
}
public class ParameterExpression : Expression {}
public class Test {
public static void Main() {
Expression e = new Expression();
Expression.Block(
new ParameterExpression[] {},
e
);
}
}
Result:
Test.cs(13,20): error CS0121: The call is ambiguous between the following
methods or properties: `Expression.Block(params Expression[])' and
`Expression.Block(System.Collections.Generic.IEnumerable<ParameterExpression>,
params Expression[])'
Test.cs(4,24): (Location of the symbol related to previous error)
Test.cs(5,24): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
Compiles fine on csc.
Blocks DLR.
--
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