Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2006-03-12 19:41:22 +0300
committerMarek Safar <marek.safar@gmail.com>2006-03-12 19:41:22 +0300
commit267ee5eab7c01df351de440def17b05340f9a239 (patch)
treed564bfeb8b716ed2d414ceaf268c083f6a30ac43 /mcs/gmcs/typemanager.cs
parent7a1ab756d280b18f5acb2cbabd0681ad7358bb04 (diff)
manually synchronized with 56802
svn path=/trunk/mcs/; revision=57871
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index e19bfdfa5ae..341ed3cd514 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -1290,7 +1290,11 @@ public partial class TypeManager {
// a TypeBuilder array will return a Type, not a TypeBuilder,
// and we can not call FindMembers on this type.
//
- if (t.IsSubclassOf (TypeManager.array_type))
+ if (
+#if MS_COMPATIBLE
+ !t.IsGenericType &&
+#endif
+ t.IsSubclassOf (TypeManager.array_type))
return new MemberList (TypeManager.array_type.FindMembers (mt, bf, filter, criteria));
if (t is GenericTypeParameterBuilder) {