2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-etree-22.cs
blobeeedbd47107ee9d8bce70e5f5d5f5775ec213761
1 using System;
2 using System.Linq.Expressions;
4 namespace FieldInfoBug
6 public class MonoRuntime
8 public static int Main ()
10 // This constructor throws ArgumentException:
11 // The field handle and the type handle are incompatible.
12 new GenericClass<object> ("value");
13 return 0;
17 public class GenericClass<T>
19 public GenericClass (string argument)
21 Expression<Func<string>> expression = () => argument;