[Issue 20907] [DIP1000] Unittest fails when duplicated
https://issues.dlang.org/show_bug.cgi?id=20907 --- Comment #4 from Dlang Bot --- dlang/dmd pull request #13370 "Add opApply test case for issue 20907" was merged into master: - de2d05e6a70ddbcae1d03bd75e45755e863ca7c9 by dkorpel: Add opApply test case for issue 20907 https://github.com/dlang/dmd/pull/13370 --
[Issue 20907] [DIP1000] Unittest fails when duplicated
https://issues.dlang.org/show_bug.cgi?id=20907 Dennis changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Dennis --- This compiles now with -preview=dip1000 since "Rework fix for attribute based opApply overloads (issue 15624) #13226": https://github.com/dlang/dmd/pull/13226 --
[Issue 20907] [DIP1000] Unittest fails when duplicated
https://issues.dlang.org/show_bug.cgi?id=20907 Dennis changed: What|Removed |Added Hardware|x86 |All OS|Windows |All Severity|enhancement |normal --- Comment #2 from Dennis --- Nevermind, the url shortener was blocked on the network I was on. Here's the code reduced some more: ``` 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()) {} // OK } void foo1() { foreach (x; lockstep()) {} // FAILS } ``` --
[Issue 20907] [DIP1000] Unittest fails when duplicated
https://issues.dlang.org/show_bug.cgi?id=20907 Dennis changed: What|Removed |Added CC||dkor...@live.nl --- Comment #1 from Dennis --- The link is dead, please post the code in this issue. --