Bug 41837 - Incorrect method overload selected for delagate call
Summary: Incorrect method overload selected for delagate call
Status: RESOLVED ANSWERED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 4.2.0 (C6)
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2016-06-15 00:58 UTC by Igor Kiselev
Modified: 2017-08-28 15:05 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case for issue reproducing (3.80 KB, text/plain)
2016-06-15 00:58 UTC, Igor Kiselev
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Igor Kiselev 2016-06-15 00:58:09 UTC
Created attachment 16335 [details]
Test case for issue reproducing

Description of Problem:
Incorrect interface method overload selected for delegate invocation when they differs only in generic parameters.

Steps to reproduce the problem:
1. Compile application from attachment
2. Run it.


Actual Results (see last lines):
Console output:
**Interface**
IInterface
Base
Derived
Base

Expected Results:
Console output:
**Interface**
IInterface
Base
Derived
GenericDerived

How often does this happen? 
Always
Comment 1 Marek Safar 2016-06-15 08:32:34 UTC
I cannot reproduce it with Mono 4.4

I get following output

**Interface**
IInterface
Base
Derived
GenericDerived
GenericBase
Comment 2 Igor Kiselev 2016-06-15 18:56:16 UTC
Thank you for response. Looks like issue already fixed in 4.4.0. It was reproducible in 4.2 branch. 
Sorry for incorrect report.
Comment 3 Marek Safar 2016-06-15 19:07:33 UTC
.