[Mono-bugs] [Bug 79706][Nor] Changed - [GMCS] /doc doesn't like generic types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 2 13:04:51 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mike.allen at durrusa.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79706

--- shadow/79706	2007-05-02 12:54:02.000000000 -0400
+++ shadow/79706.tmp.17345	2007-05-02 13:04:50.000000000 -0400
@@ -167,6 +167,42 @@
 
 ------- Additional Comments From miguel at ximian.com  2007-01-01 03:48 -------
 Lets go with CSC as the reference in this case
 
 ------- Additional Comments From mike.allen at durrusa.com  2007-05-02 12:54 -------
 *** Bug 81513 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From mike.allen at durrusa.com  2007-05-02 13:04 -------
+Can I just raise one additional related issue?  gmcs produces a CS1580
+error when it encounters a cref attribute identifying a function that
+takes a generic argument.
+
+For example:
+
+namespace Test
+{
+
+    /// <summary>Test.</summary>
+    ///
+    /// <remarks>Don't forget to <see cref="DoSomething (T)" />!</remarks>
+    /// <typeparam name="T">Some type.</typeparam>
+
+    public class Test <T>
+    {
+
+        /// <summary>Some function.</summary>
+        ///
+        /// <param name="someValue">Whatever.</param>
+
+        public void DoSomething (T someValue)
+        {
+        }
+    }
+}
+
+Produces the message:
+
+test.cs(9,18): error CS1580: Invalid type for parameter `1' in XML
+comment cref attribute `DoSomething (T)'
+Compilation failed: 1 error(s), 0 warnings
+
+This compiles OK with the MS compiler.


More information about the mono-bugs mailing list