--- /dev/null
+// CS1593: Delegate `System.Action<System.Threading.Tasks.Task>' does not take `0' arguments
+// Line: 17
+
+using System;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+
+namespace CrashRepro.Core
+{
+ public class X
+ {
+ async void Foo ()
+ {
+ var pushes = await Run ().ContinueWith (l =>
+ {
+ for (int i = 0; i < 1; ++i)
+ Run ().ContinueWith(() => { });
+ });
+ }
+
+ Task Run ()
+ {
+ return null;
+ }
+ }
+}
+
infinite = true;
}
- base.Resolve (bc);
-
- Iterator.Resolve (bc);
-
- return true;
+ return base.Resolve (bc) && Iterator.Resolve (bc);
}
protected override bool DoFlowAnalysis (FlowAnalysisContext fc)
var prev_loop = bc.EnclosingLoop;
var prev_los = bc.EnclosingLoopOrSwitch;
bc.EnclosingLoopOrSwitch = bc.EnclosingLoop = this;
- Statement.Resolve (bc);
+ var ok = Statement.Resolve (bc);
bc.EnclosingLoopOrSwitch = prev_los;
bc.EnclosingLoop = prev_loop;
- return true;
+ return ok;
}
//