Details
Description
There was a resent bug that prevents us to access overloaded methods if there is a generic case. Cedric's patch resolved this issue.
However currently a predicate argument containing method still cannot be resolved correctly
The following does not work:
Boo :
import db4mo from "db4mo.dll"
db = db4mo()
db.Query[of db4mo](
{pilot as db4mo| return true})
//////////////
C#:
using System;
public class db4mo
{
public void Query<T>(T t)
{ Console.WriteLine(t); }public void Query<T>(System.Predicate<T> t)
{ Console.WriteLine("Generic Query"); }}
That seems tome only a problem when the argument is a predicate but not sure
Issue Links
- relates to
-
BOO-824
Generic and non-generic methods conflict during method invocation resolution
-
New patch fixing internal method overloading.
I have a small problem with my mono setup right now so I cannot test your testcase with predicate, please try it.
the following testcases work ok here :
internal : http://monoport.com/5915
external : http://monoport.com/5916 (as library) and http://monoport.com/5917