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>2005-12-09 15:48:52 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-12-09 15:48:52 +0300
commite21090f8fd13f8ab36aa543d72b70555a48ac781 (patch)
tree73ad2454d7aecb4d851ac93dc797ee4e5f2f50ed /mcs/gmcs/typemanager.cs
parent5dfbf8293fa530de063ed59b696664ac4d9e31d2 (diff)
* anonymous.cs (AnonymousMethod.Compatible): Use IsGenericType
instead of IsGenericInstance. * generic.cs (TypeManager.IsEqual): Likewise. Delete redundant code that's now covered by the more general test. * typemanager.cs (TypeManager.IsPrivateAccessible): Likewise. svn path=/trunk/mcs/; revision=54159
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index b5d3c0e7f41..bc21454b81f 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -1573,31 +1573,6 @@ public partial class TypeManager {
{
if (type.Equals (parent))
return true;
-
- if ((type is TypeBuilder) && type.IsGenericTypeDefinition && parent.IsGenericInstance) {
- //
- // `a' is a generic type definition's TypeBuilder and `b' is a
- // generic instance of the same type.
- //
- // Example:
- //
- // class Stack<T>
- // {
- // void Test (Stack<T> stack) { }
- // }
- //
- // The first argument of `Test' will be the generic instance
- // "Stack<!0>" - which is the same type than the "Stack" TypeBuilder.
- //
- //
- // We hit this via Closure.Filter() for gen-82.cs.
- //
- if (type != parent.GetGenericTypeDefinition ())
- return false;
-
- return true;
- }
-
return DropGenericTypeArguments (type) == DropGenericTypeArguments (parent);
}