Don't attempt to keep processing after processing all types.
authorGeoff Norton <grompf@sublimeintervention.com>
Wed, 21 Apr 2010 23:36:19 +0000 (23:36 -0000)
committerGeoff Norton <grompf@sublimeintervention.com>
Wed, 21 Apr 2010 23:36:19 +0000 (23:36 -0000)
Don't attempt to get interfaces of GenericParameters.

svn path=/trunk/mcs/; revision=155925

mcs/tools/monop/monop.cs
mcs/tools/monop/outline.cs

index 5f07ba04a5d61e14e4ca8bf3130f84580d84a403..504d899f831e6a22c2b059c6a02317ed1f6a5db9 100644 (file)
@@ -316,6 +316,7 @@ class MonoP {
 
                        if (options.ShowAll){
                                ShowAll (assembly, options.FilterObsolete, options.ShowPrivate);
+                               return;
                        } else {
                                if (options.Type == null) {
                                        if (options.PrintRefs)
index 4682bd2b6dfd8ead5b330676d4a2ebee681b3aca..784cece95b2cbd41f030192bbaecacd71d740879 100644 (file)
@@ -866,6 +866,9 @@ public class Outline {
 
        static Type [] TypeGetInterfaces (Type t, bool declonly)
        {
+               if (t.IsGenericParameter)
+                       return new Type [0];
+
                Type [] ifaces = t.GetInterfaces ();
                if (! declonly)
                        return ifaces;