[Mono-bugs] [Bug 49904][Nor] Changed - Error CS0136 for compiling program -- scope issue

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 18 Nov 2003 12:36:05 -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=49904

--- shadow/49904	2003-10-20 17:58:01.000000000 -0400
+++ shadow/49904.tmp.21029	2003-11-18 12:36:01.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 49904
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: debian gnu/linux woody 2.4.18
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: baskmau@hotmail.com               
 QAContact: mono-bugs@ximian.com
@@ -86,6 +86,16 @@
 ~/j2sdk142/bin/java Scope
  .. inside if block .. 
  .. top level scope .. 
  .. fini scope test .. 
 
 I thought scopes would work similarly in this case:
+
+------- Additional Comments From bmaurer@users.sf.net  2003-11-18 12:36 -------
+Please see the spec, section 3.7:
+
+"The scope of a local variable declared in a local-variable-
+declaration (Section 8.5.1) is the block in which the declaration 
+occurs."
+
+http://msdn.microsoft.com/library/default.asp?url=/library/en-
+us/csspec/html/vclrfcsharpspec_3_9.asp