Reduced a bit more:
```
void boo(T)( scope void delegate(T[] data) fun) {}
void goo(T)(/+scope+/ void delegate(T[] data) fun) {}
void main() {
void Execute(int[] data) {}
goo(&Execute); // Works
boo(&Execute); // Compiler error with DIP 1000
}
```
Comment #2 by dlang-bot — 2022-07-25T22:09:57Z
@dkorpel created dlang/dmd pull request #14331 "Fix 20823 - un-@safe code fails with dip1000" fixing this issue:
- Fix 20823 - un-@safe code fails with dip1000
https://github.com/dlang/dmd/pull/14331
Comment #3 by dlang-bot — 2022-07-26T07:57:27Z
dlang/dmd pull request #14331 "Fix 20823 - un-@safe code fails with dip1000" was merged into master:
- bc49666578e6c40a73a0974a0a42186a5fbccd6e by Dennis Korpel:
Fix 20823 - un-@safe code fails with dip1000
https://github.com/dlang/dmd/pull/14331