Author: martin
Date: 2005-05-04 07:42:29 -0400 (Wed, 04 May 2005)
New Revision: 44019
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/ecore.cs
Log:
2005-05-04 Martin Baulig <[EMAIL PROTECTED]>
* ecore.cs (FieldExpr.DoResolveLValue): Always call fb.SetAssigned().
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-05-04 11:41:50 UTC (rev 44018)
+++ trunk/mcs/mcs/ChangeLog 2005-05-04 11:42:29 UTC (rev 44019)
@@ -1,5 +1,9 @@
2005-05-04 Martin Baulig <[EMAIL PROTECTED]>
+ * ecore.cs (FieldExpr.DoResolveLValue): Always call fb.SetAssigned().
+
+2005-05-04 Martin Baulig <[EMAIL PROTECTED]>
+
Fix #74655.
* statement.cs (Switch.SimpleSwitchEmit): Always emit the default
Modified: trunk/mcs/mcs/ecore.cs
===================================================================
--- trunk/mcs/mcs/ecore.cs 2005-05-04 11:41:50 UTC (rev 44018)
+++ trunk/mcs/mcs/ecore.cs 2005-05-04 11:42:29 UTC (rev 44019)
@@ -2906,13 +2906,13 @@
return null;
}
- if (!FieldInfo.IsInitOnly)
- return this;
-
FieldBase fb = TypeManager.GetField (FieldInfo);
if (fb != null)
fb.SetAssigned ();
+ if (!FieldInfo.IsInitOnly)
+ return this;
+
//
// InitOnly fields can only be assigned in constructors
//
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches