[Issue 24394] mutable array can be returned as string

2024-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24394 Nick Treleaven changed: What|Removed |Added Keywords||safe CC|

[Issue 24394] mutable array can be returned as string

2024-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24394 --- Comment #2 from Forest --- The above example does indeed trigger an error with -preview=fixImmutableConv on run.dlang.org. However, changing the test function's argument to const(ubyte)[] slips right past with no complaint. Shouldn't that be

[Issue 24394] mutable array can be returned as string

2024-02-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24394 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|