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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs