[Issue 15862] dmd thinks functions are strongly pure despite mutable indirections in the return type
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Oct 5 03:43:13 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15862
--- Comment #4 from anonymous4 <dfj1esp02 at sneakemail.com> ---
Proper test case:
int[] a=f();
int[] b=f();
a[0]=0;
b[0]=1;
assert(a[0]==0 && b[0]==1);
--
More information about the Digitalmars-d-bugs
mailing list