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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 5 Jan 2004 17:53:02 -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 .

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

--- shadow/52503	2004-01-05 17:53:02.000000000 -0500
+++ shadow/52503.tmp.11404	2004-01-05 17:53:02.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 52503
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Wishlist
+Component: C#
+AssignedTo: martin@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
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-23 15:13 -------
+See 7.5.2.1 Invariant meaning in blocks