[Mono-bugs] [Bug 59324][Wis] Changed - IdenticalNameAndTypeName is too permissive

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 6 Dec 2004 09:32:28 -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 rharinath@novell.com.

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

--- shadow/59324	2004-05-30 16:28:03.000000000 -0400
+++ shadow/59324.tmp.25869	2004-12-06 09:32:28.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 59324
 Product: Mono: Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -31,6 +31,13 @@
 
 We compile this, and print `0'. The reason is that when we see `A.X' it is
 a static field. However, it is being accessed as an instance field. For
 correctness, we check to see if `T' is a type. Indeed, it is.
 
 The check we really need to do is `is T a type that holds X'
+
+------- Additional Comments From rharinath@novell.com  2004-12-06 09:32 -------
+With the latest snapshot of MCS from SVN I get:
+
+bug59324.cs(8) error CS0176: Static member `X' cannot be accessed with
+an instance reference, qualify with a type name instead
+