[Mono-bugs] [Bug 566511] Lambda/Expression throws ArgumentException: The field handle and the type handle are incompatible in generic class.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 21 16:10:50 EST 2009


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

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


--- Comment #1 from Marek Safar <msafar at novell.com> 2009-12-21 21:10:50 UTC ---
using System;

using System.Linq.Expressions;



namespace FieldInfoBug

{

    public class MonoRuntime

    {

        public static void Main ()

        {

            // This constructor throws ArgumentException: 

            // The field handle and the type handle are incompatible.

            new GenericClass<object>("value");

        }

    }



    public class GenericClass<T>

    {

        public GenericClass(string argument)

        {

            Expression<Func<string>> expression = () => argument;

        }

    }

}

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