[Mono-bugs] [Bug 601157] [regression] smcs complains about (not really) missing RuntimeHelpers.InitializeArray

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 5 11:20:05 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=601157

http://bugzilla.novell.com/show_bug.cgi?id=601157#c1


--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2010-05-05 15:20:04 UTC ---
Found out (part of) the problem. The resolution changed when 2 conflicting
types are found. xMCS was not compatible (see bug #537414) with CSC. 

Now I guess it's still not totally compatible since this code compiles with
CSC.


warning CS0436: The type `System.Runtime.CompilerServices.RuntimeHelpers'
conflicts with the imported type of same name'. Ignoring the imported type
definition
/home/poupou/svn/moon/class/lib/2.1/mscorlib.dll (Location of the symbol
related to previous warning)


from security/MiscTest.cs:

// this icall exists on both mono and sl
// note: CSC prefer this type when compiling this assembly, while SMCS prefers
the original type from mscorlib.dll
namespace System.Runtime.CompilerServices {
    public class RuntimeHelpers {

        [MethodImpl (MethodImplOptions.InternalCall)]
        public static extern object GetObjectValue (object obj);
    }
}

-- 
Configure bugmail: http://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