Merge pull request #4722 from alexanderkyte/checked_after
[mono.git] / mcs / mcs / assign.cs
index 04cfe49f1f867158e76a486138ba87982f9a1762..7200501984e2230825ba7f8dfdaf06f3cec5fba6 100644 (file)
@@ -719,9 +719,11 @@ namespace Mono.CSharp {
                                this.loc = child.Location;
                        }
 
+                       public bool RequiresEmitWithAwait { get; set; }
+
                        public override bool ContainsEmitWithAwait ()
                        {
-                               return child.ContainsEmitWithAwait ();
+                               return RequiresEmitWithAwait || child.ContainsEmitWithAwait ();
                        }
 
                        public override Expression CreateExpressionTree (ResolveContext ec)