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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 22 11:25:58 EDT 2008


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

User msafar at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=321020#c4


Marek Safar <msafar at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
            Summary|cannot compile delegates from different         |[CECIL] cannot compile delegates from different
                   |assemblies                                      |assemblies




--- Comment #4 from Marek Safar <msafar at novell.com>  2008-07-22 09:25:57 MDT ---
After some investigation this should be possible to implement with SRE. When
fixing this by doing string comparison in TypeManager::IsEqual (Type a, Type b)
we still end up we 2 different tokens for same type (it crashes .NET and it
creates invalid assembly with 2 references to same type on Mono).

What actually happen is that we have 2 types of same type. One is TypeBuilder
and (created) second one is Type (imported). They are same but Equals returns
false.

The correct fix would be to redirect imported type to current type but that is
big change which probably has to wait for CECIL.

One indication is warning CS1683 which csc reports when change seconds.cs
namespace.

first.dll: warning CS1683: Reference to type 'SecondNS.SecondClass' claims it
is
        defined in this assembly, but it is not defined in source or any added
        modules
second.cs(17,4): error CS0570: 'Foo' is not supported by the language
first.dll: (Location of symbol related to previous error)


-- 
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