[Mono-bugs] [Bug 74200][Wis] New - Incorrect error message formatting: T.X(ref int&)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 29 Mar 2005 16:24:49 -0500 (EST)


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 bmaurer@users.sf.net.

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

--- shadow/74200	2005-03-29 16:24:49.000000000 -0500
+++ shadow/74200.tmp.12330	2005-03-29 16:24:49.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 74200
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect error message formatting: T.X(ref int&)
+
+Consider this test case:
+
+class T {
+	static void Main () {}
+		
+	static void X (ref int y) {}
+	static void X (ref int y) {}
+}
+
+When you compile it, you get:
+
+[benm@omega benm]$ mcs foo.cs
+foo.cs(7) error CS0111: Type 'T' already defines a member called 'X' with
+the same parameter types
+foo.cs(6): 'T.X(ref int&)' (name of symbol related to previous error
+Compilation failed: 1 error(s), 0 warnings
+
+saying ref int& is incorrect. The `ref' already encodes the managed pointer
+(&). We should remove the & from the type name.