ldc-developers/ldc — Issue #41: Casting Associative Arrays To Immutable
Author: dsimcha
Created: 2011-12-08 22:53:57+00:00
State: open

void main() {
uint[string] foo;
immutable bar = cast(immutable) foo;
}

test.d(3): Error: invalid cast from 'uint[string]' to 'immutable(uint[string])'

These conversions are supposed to be allowed with an explicit cast. GDC and DMD both allow them.