[Mono-bugs] [Bug 76873][Nor] New - [/doc] CS1574 not reported for method/ctor cref with no args ...

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 1 16:42:51 EST 2005


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 gert.driesen at pandora.be.

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

--- shadow/76873	2005-12-01 16:42:51.000000000 -0500
+++ shadow/76873.tmp.30082	2005-12-01 16:42:51.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 76873
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [/doc] CS1574 not reported for method/ctor cref with no args ...
+
+mcs does not report CS1574 for a method/ctor cref with empty parantheses
+(no arguments) if there's no matching method/ctor with no arguments.
+
+To reproduce, compile the following code snippet (using mcs /doc:test.xml
+test.cs):
+
+/// <summary>
+/// <see cref="Format()" />
+/// <see cref="Test()" />
+/// </summary>
+public class Test {
+  static void Main () {
+  }
+
+  /// <summary />
+  public Test (string a) {
+  }
+
+  /// <summary />
+  public static void Format (object a)
+  {
+  }
+}
+
+Actual Results:
+
+Successful compilation
+
+Expected Results:
+
+test.cs(2,16): warning CS1574: XML comment on 'Test' has cref attribute
+'Format()' that could not be resolved
+test.cs(3,16): warning CS1574: XML comment on 'Test' has cref attribute
+'Test()' that could not be resolved


More information about the mono-bugs mailing list