[Mono-bugs] [Bug 619919] Capturing of base scope
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jul 11 06:21:38 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=619919
http://bugzilla.novell.com/show_bug.cgi?id=619919#c2
--- Comment #2 from Marek Safar <msafar at novell.com> 2010-07-11 10:21:37 UTC ---
Test #3
using System;
public delegate int D ();
public abstract class A
{
protected abstract event D Event;
}
public class B : A
{
protected override event D Event;
protected int Run ()
{
return Event ();
}
}
public class C : B
{
int Test (int i)
{
Action a = () => base.Event += () => i;
a ();
return Run ();
}
public static int Main ()
{
if (new C ().Test (9) != 9)
return 1;
return 0;
}
}
--
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