https://issues.dlang.org/show_bug.cgi?id=20211
--- Comment #1 from anonymous4 <dfj1es...@sneakemail.com> --- Try this: template A() { int[] f(scope int[] a) @safe { return a; } } static assert(!__traits(compiles,A!())); --
d-bugmail--- via Digitalmars-d-bugs Mon, 16 Sep 2019 02:12:15 -0700
https://issues.dlang.org/show_bug.cgi?id=20211
--- Comment #1 from anonymous4 <dfj1es...@sneakemail.com> --- Try this: template A() { int[] f(scope int[] a) @safe { return a; } } static assert(!__traits(compiles,A!())); --