Bug 52796 - mcs gives CS0121 ambiguous call while csc does not.
Summary: mcs gives CS0121 ambiguous call while csc does not.
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 4.8.0 (C9)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2017-02-25 08:05 UTC by Atsushi Eno
Modified: 2017-02-27 14:58 UTC (History)
1 user (show)

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


Attachments
repro (3.74 KB, application/zip)
2017-02-25 08:05 UTC, Atsushi Eno
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 Atsushi Eno 2017-02-25 08:05:04 UTC
Created attachment 19970 [details]
repro

Note first: I'm trying this with mono 4-8-0-branch so master may not have this problem.

The attached source fails to build with mcs, due to:

    /home/atsushi/Desktop/PortableTest/Test.cs(68,68): Error CS0121: The call is ambiguous between the following methods or properties: `LambdicSql.Symbol.From<decimal>(this LambdicSql.Clause<decimal>, params object[])' and `LambdicSql.Symbol.From<decimal>(this LambdicSql.Clause<decimal>, params object[])' (CS0121) (PortableTest)

(The source in the sample is not very informative, it depends on NuGet package that has the mentioned methods.)
Comment 1 Atsushi Eno 2017-02-25 15:18:04 UTC
The source repo for the nuget package: https://github.com/Codeer-Software/LambdicSql
Comment 2 Marek Safar 2017-02-27 14:58:21 UTC
Already fixed in mono 2017-02