[Mono-bugs] [Bug 59980][Nor] New - mcs does not report error CS0571 for Type.get_Name()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 11 Jun 2004 02:13:58 -0400 (EDT)


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@pandora.be.

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

--- shadow/59980	2004-06-11 02:13:58.000000000 -0400
+++ shadow/59980.tmp.25302	2004-06-11 02:13:58.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 59980
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not report error CS0571 for Type.get_Name()
+
+mcs allows the accessor method for Type.Name (meaning Type.get_Name ()) 
+to be directly accessed from code.
+
+The following code fragment will not compile on csc, but compiles without 
+errors on mcs:
+
+using System;
+
+public class EntryPoint {
+        public static void Main () {
+                Type type = typeof(string);
+                Console.WriteLine (type.get_Name());
+        }
+}
+
+Note : I've only been able to reproduce this with Type.get_Name(), for 
+other accesor methods the CS0571 error is correctly reported.