linux-packaging-mono/mcs/tests/gtest-etree-22.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
445 B
C#

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