> That doesn't work, immutable breaks that test. You're right. I didn't expect that. It seems that this compiles: void foo() { immutable a = 1; enum b = a; } But this doesn't, obviously: void foo(immutable int a) { enum b = a; } I wonder, is this considered a bug? It seems very inconsistent to me.