Author: atsushi
Date: 2005-04-13 03:00:42 -0400 (Wed, 13 Apr 2005)
New Revision: 42890

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/doc.cs
Log:
2005-04-13  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * doc.cs : delegates must not be referenced with parameters.
          Fixed bug #71605.



Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-04-13 06:57:46 UTC (rev 42889)
+++ trunk/mcs/mcs/ChangeLog     2005-04-13 07:00:42 UTC (rev 42890)
@@ -1,3 +1,8 @@
+2005-04-13  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * doc.cs : delegates must not be referenced with parameters.
+         Fixed bug #71605.
+
 2005-04-12  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * typemanager.cs (IsUnmanagedType): Arrays are allowed.

Modified: trunk/mcs/mcs/doc.cs
===================================================================
--- trunk/mcs/mcs/doc.cs        2005-04-13 06:57:46 UTC (rev 42889)
+++ trunk/mcs/mcs/doc.cs        2005-04-13 07:00:42 UTC (rev 42890)
@@ -440,7 +440,7 @@
                                        return null;
                                }
                        }
-                       // here we still does not consider return type (to
+                       // here we still don't consider return type (to
                        // detect CS1581 or CS1002+CS1584).
                        msig = new MethodSignature (oper, null, paramList);
                        mis = type.FindMembers (
@@ -562,7 +562,10 @@
                        }
 
                        Type type = FindDocumentedType (mc, name, ds, cref);
-                       if (type != null) {
+                       if (type != null
+                               // delegate must not be referenced with args
+                               && (!type.IsSubclassOf (typeof 
(System.Delegate))
+                               || parameterTypes.Length == 0)) {
                                xref.SetAttribute ("cref", "T:" + 
type.FullName.Replace ("+", "."));
                                return; // a type
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to