[Mono-bugs] [Bug 523967] New: error cs1502 reported in mono-tools/Mono.Profiler build

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 21 15:33:23 EDT 2009


User mkestner at novell.com added comment

           Summary: error cs1502 reported in mono-tools/Mono.Profiler
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mkestner at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

/ObjectModel.cs(1674,31): error CS1502: The best overloaded method match for
`System.Array.Sort(System.Array, System.Array)' has some invalid arguments
/home/mkestner/INSTALL/lib/mono/2.0/mscorlib.dll (Location of the symbol
related to previous error)
/ObjectModel.cs(1674,31): error CS1503: Argument `#2' cannot convert
expression to type `System.Array'
Compilation failed: 2 error(s), 0 warnings

The offending code is:

                        Array.Sort (result,

The static field referenced in param 2 is defined as:

        public abstract class HeapItemSetStatisticsBySubject<HISSS> :
IHeapItemSetStatisticsBySubject where HISSS : IHeapItemSetStatisticsSubject {

                public static Comparison<HeapItemSetStatisticsBySubject<HISSS>>
CompareByAllocatedBytes = delegate (HeapItemSetStatisticsBySubject<HISSS> a,
HeapItemSetStatisticsBySubject<HISSS> b) {
                        return a.AllocatedBytes.CompareTo (b.AllocatedBytes);

This worked with my previous bootstrap from 6/19 from trunk, but breaks on a
curent bootstrap of mcs r138326.

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