[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / mcs / assign.cs
index 43399ffc3ae105be93bdbe212052714c7f7cde95..a07c8c0ef397d1e2d597680f035cf078aa732489 100644 (file)
@@ -390,6 +390,7 @@ namespace Mono.CSharp {
 
                        return System.Linq.Expressions.Expression.Assign (target_object, source_object);
                }
+
                protected virtual Expression ResolveConversions (ResolveContext ec)
                {
                        source = Convert.ImplicitConversionRequired (ec, source, target.Type, source.Location);
@@ -501,6 +502,12 @@ namespace Mono.CSharp {
                                pe.SetBackingFieldAssigned (fc);
                                return;
                        }
+
+                       var td = target as TupleDeconstruct;
+                       if (td != null) {
+                               td.SetGeneratedFieldAssigned (fc);
+                               return;
+                       }
                }
 
                public override Reachability MarkReachable (Reachability rc)