diff --git a/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs b/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs index 7b08b9620..005a4e685 100644 --- a/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs +++ b/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs @@ -90,7 +90,8 @@ private void ContainsAwait() foreach (var attr in attributes) { if (ReferenceEquals(ExpressionAttributes.Get(CurrentStatement), attr)) - return; + break; + attr.ContainsAwait = true; } }