* FieldInfoTest.cs: Add tests for #424077.
svn path=/trunk/mcs/; revision=112457
+2008-09-07 Zoltan Varga <vargaz@gmail.com>
+
+ * FieldInfoTest.cs: Add tests for #424077.
+
2008-06-30 Rodrigo Kumpera <rkumpera@novell.com>
* MethodBase.cs: Fix the 1.0 build.
typeof (FieldInfoTest).GetField ("non_const_field").GetRawConstantValue ();
}
+#if NET_2_0
+ [Test]
+ [ExpectedException (typeof (InvalidOperationException))]
+ public void GetValueOpenGeneric ()
+ {
+ typeof(Foo<>).GetField ("field").GetValue (null);
+ }
+
+ [Test]
+ [ExpectedException (typeof (InvalidOperationException))]
+ public void SetValueOpenGeneric ()
+ {
+ typeof(Foo<>).GetField ("field").GetValue (null);
+ }
+
+ public class Foo<T>
+ {
+ public static int field;
+ }
+#endif
+
public enum IntEnum {
First = 1,
Second = 2,