[Issue 17764] [scope][DIP1000] Escape checker defeated by composition transformations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 28 06:58:01 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=17764
--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> ---
Declaring c as:
S c = S(&buf);
does cause it to be inferred to be `scope`, and the next line is then correctly
diagnosed.
So, the trouble is the scope inference should be looking at the elements of the
static array, but is not.
--
More information about the Digitalmars-d-bugs
mailing list