svn path=/trunk/mcs/; revision=57028
+2006-02-18 Raja R Harinath <harinath@gmail.com>
+
+ * TypeTest.cs (ByrefType): New.
+
2006-02-17 Raja R Harinath <rharinath@novell.com>
* TypeTest.cs: Rename one of the instances of Foo<T> to ComFoo<T>.
Assert.IsTrue (typeof (Nullable<int>).IsInstanceOfType (5));
}
+ [Test]
+ public void ByrefType ()
+ {
+ Type foo_type = typeof (Foo<>);
+ Type type_param = foo_type.GetGenericArguments () [0];
+ Type byref_type_param = type_param.MakeByRefType ();
+ Assert.IsFalse (byref_type_param.IsGenericParameter);
+ Assert.IsNull (byref_type_param.DeclaringType);
+ }
+
[ComVisible (true)]
public class ComFoo<T> {
}