[Mono-bugs] [Bug 321020] cannot compile delegates from different assemblies

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Nov 10 15:12:03 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=321020#c3


Gert Driesen <gert.driesen at pandora.be> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gert.driesen at pandora.be
             Status|NEEDINFO                                        |ASSIGNED
      Info Provider|sagie_sh at yahoo.com                              |




--- Comment #3 from Gert Driesen <gert.driesen at pandora.be>  2007-11-10 13:12:02 MST ---
I managed to reproduce the issue by compiling in the following order:
1) compile Second.dll without dependencies on First.dll
2) compile First.dll referencing Second.dll
3) compile Second.dll with dependencies on First.dll

This results in the following errors:

second.cs(15,25): error CS1502: The best overloaded method match for
`FirstNS.FirstClass.Foo(SecondNS.SecondClass.MyDlgt)' has some invalid
arguments
second.cs(15,25): error CS1503: Argument 1: Cannot convert type
`SecondNS.SecondClass.MyDlgt' to `SecondNS.SecondClass.MyDlgt'

If you have NAnt installed, then you can use this standalone repro:
gert/standalone/bug321020 in SVN


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list