[Mono-bugs] [Bug 70942][Wis] New - mcs 1.0 incorrectly compiles properties and methods with the same name

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 3 Jan 2005 02:48:20 -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 grompf@sublimeintervention.com.

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

--- shadow/70942	2005-01-03 02:48:20.000000000 -0500
+++ shadow/70942.tmp.9261	2005-01-03 02:48:20.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 70942
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: OSX 10.3.7
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: grompf@sublimeintervention.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs 1.0 incorrectly compiles properties and methods with the same name
+
+The following test case fails on 1.0.5:
+
+class T{
+        public string A { get { return "a"; } }
+        public string A (int a) { return "a"; }
+}
+
+junglist:~/Documents/Development/mono/bugs plasma$ /Library/Frameworks/
+Mono.framework/Versions/1.0.5/bin/mcs -target:library bug.cs 
+bug.cs(3) error CS0102: The container `T' already contains a definition for `A'
+Compilation failed: 1 error(s), 0 warnings
+
+junglist:~/Documents/Development/mono/bugs plasma$ /Library/Frameworks/
+Mono.framework/Versions/1.1.3/bin/mcs -target:library bug.cs 
+junglist:~/Documents/Development/mono/bugs plasma$ 
+
+-kangaroo