[Mono-bugs] [Bug 412116] New: ** ERROR:(metadata.c:2097):type_in_image: assertion failed: (type->data.generic_param->owner->is_method)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 04:17:12 EDT 2008


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


           Summary: ** ERROR:(metadata.c:2097):type_in_image: assertion
                    failed: (type->data.generic_param->owner->is_method)
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


1. compile this program using gmcs

using System;
using System.Collections.Generic;
using System.Linq;

static class C
{
        public static decimal Average<TSource> (this IEnumerable<TSource>
source, Func<TSource, decimal> selector)
        {
                return source.Select (selector).Average<decimal, decimal,
decimal> ((a, b) => a + b, (a, b) => a / b);
        }

        public static void Main ()
        {
        }
}


RESULT:

bug-1.cs(9,49): error CS1501: No overload for method `Average' takes `3'
arguments
Compilation failed: 1 error(s), 0 warnings
**
** ERROR:(metadata.c:2097):type_in_image: assertion failed:
(type->data.generic_param->owner->is_method)
Aborted


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