[Mono-bugs] [Bug 41980][Nor] Changed - Cosmetic work on compiler

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 29 Apr 2004 21:50:23 -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 bmaurer@users.sf.net.

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

--- shadow/41980	2004-04-29 15:36:39.000000000 -0400
+++ shadow/41980.tmp.2003	2004-04-29 21:50:23.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 41980
 Product: Mono: Compilers
 Version: unspecified
 OS: GNU/Linux [Other]
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath@novell.com                            
 ReportedBy: pbaena@uol.com.ar               
 QAContact: mono-bugs@ximian.com
@@ -54,6 +54,33 @@
    This bug either had no qa contact or an invalid one.
 
 
 
 ------- Additional Comments From martin@ximian.com  2004-04-29 15:36 -------
 This should be easy too.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-29 21:50 -------
+Yeah, it really should, especially since we do it already:
+
+[benm@Ben tmp]$ mcs t.cs
+t.cs(13) error CS1023: An embedded statement may not be a declaration.
+Compilation failed: 1 error(s), 0 warnings
+[benm@Ben tmp]$ cat t.cs
+using System;
+  
+class A
+{
+}
+  
+class test
+{
+   public static void Main()
+   {
+        if (true)
+//      {
+              A c1 = new A();
+//      }
+   }
+}[benm@Ben tmp]$
+
+
+:-)