Hi all, I've found nothing on bugzilla for that, what I'm missing? Or it's a bug? (DMD 2.055)
struct Bar {
immutable int i;
this(int j){ i = j; }
}
struct Foo {
Bar bar;
}
void main(){
auto b = Bar(1);
auto f = Foo();
f.bar = Bar(2); // Error: can only initialize const member bar inside
constructor
}
Cheers,
Paolo Invernizzi
