[Mono-bugs] [Bug 47991][Wis] Changed - CS0136: `int x; void Foo () { x = 9; int x = 8; }'
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 27 Apr 2004 22:22:39 -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 martin@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=47991
--- shadow/47991 2004-04-27 22:21:18.000000000 -0400
+++ shadow/47991.tmp.29167 2004-04-27 22:22:39.000000000 -0400
@@ -11,13 +11,13 @@
AssignedTo: martin@ximian.com
ReportedBy: sestoft@dina.kvl.dk
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: error CS0136 (local variable declaration error) not reported
+Summary: CS0136: `int x; void Foo () { x = 9; int x = 8; }'
Description of Problem:
mcs 0.26 does not report an error CS0136 for the declaration of x in method
m2 below. MS csc 1.2 alpha does. And it should according to C# Lang Spec
section 3.7.