* TypeTest.cs (ByrefType): New.
authorRaja R Harinath <harinath@hurrynot.org>
Sat, 18 Feb 2006 06:01:34 +0000 (06:01 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Sat, 18 Feb 2006 06:01:34 +0000 (06:01 -0000)
svn path=/trunk/mcs/; revision=57028

mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/TypeTest.cs

index 7501f3b4f6a3d3c4cb30ef4359504552a05b780d..5f1f3cf910f94f358165cb93c53a386aedcda773 100644 (file)
@@ -1,3 +1,7 @@
+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>.
index ea872fbfa1b1c1cc5a6e223e03935b1ad3403450..10eb03d4ab9859050f6c20aeba9298ae1d3fffa8 100644 (file)
@@ -594,6 +594,16 @@ PublicKeyToken=b77a5c561934e089"));
                        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> {
                }