2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
authorMiguel de Icaza <miguel@gnome.org>
Sun, 26 Jul 2009 22:25:39 +0000 (22:25 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 26 Jul 2009 22:25:39 +0000 (22:25 -0000)
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=138703

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Type.cs

index 3a1cb44c0c976ac14c9b31f3b782732cfb40acb0..595232b0530c7005826c9393c286f25bb8c949ec 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-26  Miguel de Icaza  <miguel@novell.com>
+
+       * Type.cs: do not create array of voids.   Fixes Microsoft
+       Silverlight test Activator/ActivatorCreateInstance2_cti
+
 2009-07-19  Robert Jordan  <robertj@gmx.net>
 
        * __ComObject.cs: Factor out Initialize method and expose it to
index 3e9bec1ebe6b275f97ed22d739b43a5f58cbb56e..e8cb9e9e233c0359e877051243735a5f1fffc78d 100644 (file)
@@ -1302,6 +1302,9 @@ namespace System {
                {
                        if (rank < 1)
                                throw new IndexOutOfRangeException ();
+                       if (this == typeof (void))
+                               throw new NotSupportedException ();
+                       
                        return make_array_type (rank);
                }