* class.cs (Constructor.Define): Set the private flag for static
constructors as well.
svn path=/trunk/mcs/; revision=15719
2003-06-28 Miguel de Icaza <miguel@ximian.com>
+ * class.cs (Constructor.Define): Set the private flag for static
+ constructors as well.
+
* cs-parser.jay (statement_expression): Set the return value to
null, to avoid a crash when we catch an error.
if (!DoDefineParameters (container))
return false;
- if ((ModFlags & Modifiers.STATIC) != 0)
- ca |= MethodAttributes.Static;
- else {
+ if ((ModFlags & Modifiers.STATIC) != 0){
+ ca |= MethodAttributes.Static | MethodAttributes.Private;
+ } else {
if (container is Struct && ParameterTypes.Length == 0){
Report.Error (
568, Location,