Comment #0 by default_357-line — 2022-04-01T07:04:41Z
Consider the following code:
immutable int a;
auto b = [tuple(a, a)].assocArray;
assocArray should be able to see that while it gets an immutable int as value, it can trivially convert that to int, which is allowed. Unfortunately, it instead complains that "assocArray: value type must be mutable", forcing the awkward `tuple!(int, int)(a, a)`.
Comment #1 by robert.schadek — 2024-12-01T16:39:59Z