[Mono-bugs] [Bug 77344][Nor] New - in C#: static is not an allowed modifier for keyword class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 24 11:39:09 EST 2006


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 mono at xp-obj.ch.

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

--- shadow/77344	2006-01-24 11:39:09.000000000 -0500
+++ shadow/77344.tmp.18279	2006-01-24 11:39:09.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 77344
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: mono at xp-obj.ch               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: in C#: static is not an allowed modifier for keyword class
+
+** Description:
+"static" is not an allowed modifier for keyword class:
+        see e.g.
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcreftheclasstype.asp
+
+** Test case:
+test.cs
+-------
+// begin test.cs
+public static class Test {
+        public static void Main() {
+        }
+}
+// end test.cs
+
+** Mono behaviour
+Mono C# compiler version 1.1.13.2 on debian Sarge compiles without complaints:
+mcs -warn:4 test.cs
+Mono C# compiler version 1.1.12.1 on MS Windows 2000 Prof. compiles without
+complaints:
+mcs -warn:4 test.cs
+
+** Microsoft behaviour
+output from "csc test.cs" on MS Windows 2000 Prof.
+Microsoft (R) C# .NET Compiler version 7.10.3052.4
+for Microsoft (R) .NET Framework version 1.1.4322
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+
+test.cs(1,22): error CS0106: The modifier 'static' is not valid for this item
+
+** DotGNU  behaviour
+output from "cscc test.cs" on debian Sarge for dotgnu cscc version 0.7.5
+test.cs:1: `static' cannot be used in this context
+output from "cscc test.cs" on MS Win 2000 Prof. for dotgnu cscc version 0.7.5
+test.cs:1: `static' cannot be used in this context


More information about the mono-bugs mailing list