[Issue 21807] Non-immutable data can be converted to immutable using function call in ctor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 7 18:45:36 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21807
--- Comment #5 from anonymous4 <dfj1esp02 at sneakemail.com> ---
char[] a(const int[] arr) pure @safe;
void b(const int[] arr) @safe
{
char[] c=a(arr);
string d=a(arr);
}
For this code dip1000 rejects the conversion to string too. How is it related
to dip1000?
--
More information about the Digitalmars-d-bugs
mailing list