Bug 82 - Ambiguous call error with interfaces referenced in separate dll
Summary: Ambiguous call error with interfaces referenced in separate dll
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2011-07-27 10:24 UTC by Bill Holmes
Modified: 2011-08-05 16:48 UTC (History)
3 users (show)

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


Attachments
1 of 2 test files to reproduce (182 bytes, text/plain)
2011-07-27 10:24 UTC, Bill Holmes
Details
2 of 2 test files to reproduce (166 bytes, text/plain)
2011-07-27 10:25 UTC, Bill Holmes
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 FIXED

Description Bill Holmes 2011-07-27 10:24:19 UTC
Created attachment 20 [details]
1 of 2 test files to reproduce

Compile the attached cs files
 gmcs -t:library mycore.cs
 gmcs -r:mycore.dll test.cs

Actual result:

test.cs(8,25): error CS0121: The call is ambiguous between the following methods or properties: `IZZZ.Foo(IBBB)' and `IYYY.Foo(IAAA)'
.../mycore.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

Expected result:
 (Successful build)
Comment 1 Bill Holmes 2011-07-27 10:25:43 UTC
Created attachment 21 [details]
2 of 2 test files to reproduce
Comment 2 Marek Safar 2011-08-05 16:48:06 UTC
Fixed in master.