linux-packaging-mono/mcs/tests/gtest-etree-22.cs

24 lines
445 B
C#
Raw Normal View History

using System;
using System.Linq.Expressions;
namespace FieldInfoBug
{
public class MonoRuntime
{
public static int Main ()
{
// This constructor throws ArgumentException:
// The field handle and the type handle are incompatible.
new GenericClass<object> ("value");
return 0;
}
}
public class GenericClass<T>
{
public GenericClass (string argument)
{
Expression<Func<string>> expression = () => argument;
}
}
}