[Issue 22782] [dip1000] string escaped by throwing constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 16 19:50:17 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22782
--- Comment #1 from Ate Eskola <Ajieskola at gmail.com> ---
Also triggered with an assertion:
------
struct DontDoThis
{ immutable char[12] content;
@safe this(char ch)
{ content[] = ch;
assert(0, content[]);
}
}
void main() @safe
{ DontDoThis('a');
}
------
--
More information about the Digitalmars-d-bugs
mailing list