a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
445 B
C#
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;
|
|
}
|
|
}
|
|
} |