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:
authorRaja R Harinath <harinath@hurrynot.org>2006-04-01 20:02:41 +0400
committerRaja R Harinath <harinath@hurrynot.org>2006-04-01 20:02:41 +0400
commit7e33712ea87ced3fade95b81ff42b883a1a6ebfd (patch)
treeeae82489b1aa55a4387f45b9a4ec30887578234f /mcs/gmcs/typemanager.cs
parent2f71af9d8bc17b42bdc717fa2c734a9e7c7e70f2 (diff)
Fix #77929
* gmcs/typemanager.cs (IsNestedChildOf): Drop generic arguments before testing. * tests/gtest-266.cs: New test from #77929. svn path=/trunk/mcs/; revision=58890
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index 54d464fe648..4049a52eeca 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -1679,6 +1679,9 @@ public partial class TypeManager {
//
public static bool IsNestedChildOf (Type type, Type parent)
{
+ type = DropGenericTypeArguments (type);
+ parent = DropGenericTypeArguments (parent);
+
if (IsEqual (type, parent))
return false;