[Mono-bugs] [Bug 619919] Capturing of base scope

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 8 03:37:33 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=619919

http://bugzilla.novell.com/show_bug.cgi?id=619919#c1


--- Comment #1 from Marek Safar <msafar at novell.com> 2010-07-08 07:37:32 UTC ---
Test #2

using System;

class A
{
    public virtual void Foo<T> (T a, params string[] b) where T : struct
    {
    }
}

class B : A
{
    public void Test (int v)
    {
        Action a = () => base.Foo<int> (b: "n", a: v);
        a ();
    }

    public void Test2<T> (T b) where T : struct
    {
        Action a2 = () => base.Foo<T> (b, "as", "asdfa");
    }
}

class Test
{
    public static void Main ()
    {
        new B ().Test (1);
    }
}

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