Bugzilla – Bug 320257
Method to delegate conversion wrong for interface types
Last modified: 2007-09-15 21:24:23 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"