diff options
author | Marek Safar <marek.safar@gmail.com> | 2006-03-12 19:41:22 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2006-03-12 19:41:22 +0300 |
commit | 267ee5eab7c01df351de440def17b05340f9a239 (patch) | |
tree | d564bfeb8b716ed2d414ceaf268c083f6a30ac43 /mcs/gmcs/typemanager.cs | |
parent | 7a1ab756d280b18f5acb2cbabd0681ad7358bb04 (diff) |
manually synchronized with 56802
svn path=/trunk/mcs/; revision=57871
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r-- | mcs/gmcs/typemanager.cs | 6 |
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) { |