[Mono-bugs] [Bug 35792][Wis] New - cs0138.cs mcs error sample compiles fine.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
17 Dec 2002 22:20:02 -0000


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 raciel@es.gnu.org.

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

--- shadow/35792	Tue Dec 17 17:20:02 2002
+++ shadow/35792.tmp.8074	Tue Dec 17 17:20:02 2002
@@ -0,0 +1,38 @@
+Bug#: 35792
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: raciel@es.gnu.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: cs0138.cs mcs error sample compiles fine.
+
+The cs0138.cs sample mcs error compiles fine. It would have to generate an
+error because I am using keyword with a class and not a namespace.
+
+The sample can be found in mcs/errors/cs0138.cs, anyway I paste the sample:
+
+
+// cs0138.cs: Using keyword only let you specify a namespace,
+//            Console is a class not a namespace.
+// Line: 5
+
+using System;
+using System.Console;
+
+class A
+{
+        static void Main ()
+        {
+                Console.WriteLine ("Test cs0138");
+        }
+}