2009-01-23 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / decl.cs
index 19b9c4c2e5819fdd04e078f40b3739aae424e94a..42998077a550a62dd37de7d1cc1c827e62c2348b 100644 (file)
@@ -1076,7 +1076,7 @@ namespace Mono.CSharp {
                        // the accessibility is for their underlying class, and they return 
                        // NonPublic visibility for pointers
                        //
-                       if (check_type.IsArray || check_type.IsPointer)
+                       if (TypeManager.HasElementType (check_type))
                                return CheckAccessLevel (TypeManager.GetElementType (check_type));
 
                        TypeAttributes check_attr = check_type.Attributes & TypeAttributes.VisibilityMask;