Author: raja
Date: 2005-03-29 07:51:22 -0500 (Tue, 29 Mar 2005)
New Revision: 42334
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/expression.cs
Log:
Fix #74060.
* expression.cs (MemberAccess.ResolveMemberAccess): Allow the
internal field "value__" of an enum be private. The examples for
"value__" that I found on MSDN all used FieldAttributes.Private.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-03-29 12:38:55 UTC (rev 42333)
+++ trunk/mcs/mcs/ChangeLog 2005-03-29 12:51:22 UTC (rev 42334)
@@ -1,5 +1,10 @@
2005-03-29 Raja R Harinath <[EMAIL PROTECTED]>
+ Fix #74060.
+ * expression.cs (MemberAccess.ResolveMemberAccess): Allow the
+ internal field "value__" of an enum be private. The examples for
+ "value__" that I found on MSDN all used FieldAttributes.Private.
+
* decl.cs (MemberCache.AddMethods): Use C# terminology in warning.
Don't mention IL method attribute names.
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2005-03-29 12:38:55 UTC (rev 42333)
+++ trunk/mcs/mcs/expression.cs 2005-03-29 12:51:22 UTC (rev 42334)
@@ -7322,7 +7322,7 @@
Expression enum_member =
MemberLookup (
ec, decl_type,
"value__", MemberTypes.Field,
- AllBindingFlags, loc);
+ AllBindingFlags |
BindingFlags.NonPublic, loc);
Enum en =
TypeManager.LookupEnum (decl_type);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches