Bug 320257 (MONO77478) - Method to delegate conversion wrong for interface types
Summary: Method to delegate conversion wrong for interface types
Status: RESOLVED MOVED
Alias: MONO77478
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-05 22:00 UTC by Nigel Perry
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Sample code producing error (466 bytes, text/plain)
2006-02-05 22:00 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:47:24 UTC


---- Reported by perryresearch@zoot.net.nz 2006-02-05 15:00:16 MST ----

Please fill in this template when reporting a bug, unless you know what you are doing.
Description of Problem:


Steps to reproduce the problem:
1. See attched code - compile it.
2. A method (group) can be implicitly converted to a delegate provided it is consistent (22.1)
3. Consistency allows implicit reference conversions, so in this case for FC(M) to work there
    must be such a conversion from C to I - there is. Mono barfs (MS does not).

Actual Results:

Barf.

Expected Results:

No barf.

How often does this happen? 

All the time.

Additional Information:

I *prefer* when you reject invalid long/int conversions early enough in this scenario so the 
example at the end of 14.5.10.3 works under Mono but not MS - the Standard seems to be 
wrong here. But sadly in this case you're the one to err - win some lose some...



---- Additional Comments From perryresearch@zoot.net.nz 2006-02-05 15:00:53 MST ----

Created an attachment (id=169229)
Sample code producing error




---- Additional Comments From marek.safar@seznam.cz 2006-11-28 09:15:19 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO79843 ***

Imported an attachment (id=169229)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Fedora Core 4</cf_op_sys_details>
Unknown operating system other. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"