Bug 10170 - 'Ambigous user defined operators' reported while working well on CSC
Summary: 'Ambigous user defined operators' reported while working well on CSC
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: Other Other
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2013-02-08 11:50 UTC by Konrad Kruczyński
Modified: 2013-02-09 09:22 UTC (History)
1 user (show)

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

Program to reproduce bug (410 bytes, application/octet-stream)
2013-02-08 11:50 UTC, Konrad Kruczyński

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:

Description Konrad Kruczyński 2013-02-08 11:50:51 UTC
Created attachment 3347 [details]
Program to reproduce bug

Description of Problem:

Steps to reproduce the problem:
1. Compile attached program

Actual Results:
Error CS0457: Ambiguous user defined operators `Test721.B.implicit operator int(Test721.B)' and `Test721.A.implicit operator double(Test721.A)' when converting from `Test721.B' to `double' (CS0457) (Test721)

Expected Results:
Well compiled program which prints values given in comments.

How often does this happen? 

Additional Information:
Mono JIT compiler version 3.0.4 (master/f6093bb czw, 24 sty 2013, 15:30:00 CET)
Comment 1 Marek Safar 2013-02-09 09:22:28 UTC
Fixed in master