-/* PERMUTE_ARGS:
+/* PERMUTE_ARGS: -preview=dip1000
*/
// https://issues.dlang.org/show_bug.cgi?id=15624
}
safe();
}
+
+// https://issues.dlang.org/show_bug.cgi?id=20907
+Lockstep!() lockstep()
+{
+ return Lockstep!()();
+}
+
+struct Lockstep()
+{
+ int opApply(int delegate(int) callback) @system
+ {
+ return 0;
+ }
+
+ int opApply(int delegate(int) pure nothrow @nogc @safe callback) pure nothrow @nogc @safe
+ {
+ return 0;
+ }
+}
+
+void foo0()
+{
+ foreach (x; lockstep()) {}
+}
+
+void foo1()
+{
+ foreach (x; lockstep()) {}
+}