2005-12-23 Miguel de Icaza <miguel@novell.com>
[mono.git] / mcs / mcs / doc.cs
index 4c0d80a146cd020e9ccef40dbfd081cc8829334c..8f0d14fbce42aa7dc0b6a3a2be63be8d826aacae 100644 (file)
@@ -749,6 +749,10 @@ namespace Mono.CSharp {
                                xref.SetAttribute ("cref", "N:" + ns.FullName);
                                return; // a namespace
                        }
+                       if (RootNamespace.Global.IsNamespace (name)) {
+                               xref.SetAttribute ("cref", "N:" + name);
+                               return; // a namespace
+                       }
 
                        Report.Warning (1574, 1, mc.Location, "XML comment on `{0}' has cref attribute `{1}' that could not be resolved",
                                mc.GetSignatureForError (), cref);