Author: martin
Date: 2005-05-04 07:41:50 -0400 (Wed, 04 May 2005)
New Revision: 44018

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/ecore.cs
Log:
2005-05-04  Martin Baulig  <[EMAIL PROTECTED]>

        * ecore.cs (FieldExpr.DoResolveLValue): Always call fb.SetAssigned().



Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2005-05-04 11:35:51 UTC (rev 44017)
+++ trunk/mcs/gmcs/ChangeLog    2005-05-04 11:41:50 UTC (rev 44018)
@@ -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/gmcs/ecore.cs
===================================================================
--- trunk/mcs/gmcs/ecore.cs     2005-05-04 11:35:51 UTC (rev 44017)
+++ trunk/mcs/gmcs/ecore.cs     2005-05-04 11:41:50 UTC (rev 44018)
@@ -3167,13 +3167,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

Reply via email to