http://bugzilla.novell.com/show_bug.cgi?id=523967
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=523967#c2 Summary: error cs1502 reported in mono-tools/Mono.Profiler build Classification: Mono Product: Mono: Compilers Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] 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 `System.Comparison<Mono.Profiler.HeapItemSetStatisticsBySubject<HISSS>>' expression to type `System.Array' Compilation failed: 2 error(s), 0 warnings The offending code is: Array.Sort (result, HeapItemSetStatisticsBySubject<HISSS>.CompareByAllocatedBytes); 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
