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
-
Activity
Cedric Vivier
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | genericmethodoverload-v4.patch [ 31277 ] |
Cedric Vivier
made changes -
| Patch Submitted | [Yes] | |
| Fix Version/s | 0.8.1 [ 13813 ] | |
| Assignee | Cedric Vivier [ cedricv ] | |
| Testcase included | yes |
Cedric Vivier
made changes -
| Attachment | genericsoverloading-v5.patch [ 31279 ] |
Avishay Lavie
made changes -
Cedric Vivier
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
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