[Mono-bugs] [Bug 33026][Nor] New - mcs incorrectly chooses property name over type name

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
30 Oct 2002 10:32:03 -0000


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 vargaz@freemail.hu.

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

--- shadow/33026	Wed Oct 30 05:32:03 2002
+++ shadow/33026.tmp.25390	Wed Oct 30 05:32:03 2002
@@ -0,0 +1,41 @@
+Bug#: 33026
+Product: Mono/MCS
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs incorrectly chooses property name over type name
+
+As can be seen on mono-list...
+
+The following code compiles with MS .NET, but not with MCS:
+
+public enum Modifiers
+{
+	Public			= 0x0001,
+}
+
+class Foo {
+
+ internal Modifiers Modifiers {
+	 get {
+		 return Modifiers.Public;
+	 }
+ }
+
+ private class Bar {
+	 void bar2() {
+		 Console.WriteLine (Modifiers.Public);
+	 }
+ }
+}