[Mono-bugs] [Bug 52503][Wis] New - We do not report CS0135

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 14:14:43 -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=52503

--- shadow/52503	2003-12-23 14:14:43.000000000 -0500
+++ shadow/52503.tmp.4482	2003-12-23 14:14:43.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 52503
+Product: Mono/Compilers
+Version: unspecified
+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: We do not report CS0135
+
+class T {
+	static int i = 0;
+	static void Main()
+	{
+		{
+			int i = 1;
+		}
+		i = 0;
+	}
+}
+
+CSC gives
+t.cs(8,3): error CS0135: 'i' conflicts with the declaration 'T.i'
+
+We compile