void bar() @safe { scope char[][2] sa; scope char[][] da = sa; // should give error }
-preview=dip1000 too
@WalterBright created dlang/dmd pull request #10951 "fix Issue 20691 - Converting scope static array to scope dynamic arra…" fixing this issue: - fix Issue 20691 - Converting scope static array to scope dynamic array should be error https://github.com/dlang/dmd/pull/10951
Why ?
I see you commented on 20505. Why open a new issue then ? Let's keep the discussion in one place. *** This issue has been marked as a duplicate of issue 20505 ***
dlang/dmd pull request #10951 "fix Issue 20691 - Converting scope static array to scope dynamic arra…" was merged into master: - 4da2034d14e9a9aa19260fde343b5fc6b613201f by Walter Bright: fix Issue 20691 - Converting scope static array to scope dynamic array should be error https://github.com/dlang/dmd/pull/10951