https://issues.dlang.org/show_bug.cgi?id=22244

--- Comment #1 from FeepingCreature <[email protected]> ---
Simpler demonstration of the issue:

```
immutable int[string] foo;
immutable(int)[string] bar = foo;
```

This should work, because if we cast it:

```
immutable int[string] foo;
immutable(int)[string] bar = foo;
bar["foo"] = 5; // cannot modify `immutable` expression `bar["foo"]`
```

we see that the original `foo` is still protected. So the implconv should go
through.

--

Reply via email to