[Mono-bugs] [Bug 582369] Passing Action<T> delegate parameter causes compile error
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Feb 24 05:02:40 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=582369
http://bugzilla.novell.com/show_bug.cgi?id=582369#c1
Marek Safar <msafar at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msafar at novell.com
--- Comment #1 from Marek Safar <msafar at novell.com> 2010-02-24 10:02:39 UTC ---
Note to myself, this is the closest I got but still compiles.
using System;
static class E
{
public static void Test<T> (this I b, T t, Action<IVoid> a)
{
}
}
public interface I
{
void Test<T> (T t);
}
public interface IVoid
{
void Empty ();
}
public class C
{
public I B { get; set; }
void Foo ()
{
B.Test (Create<C>(), c => c.Empty ());
}
static T Create<T> () where T : new()
{
return new T ();
}
public static void Main ()
{
}
}
--
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