配列の中に値を代入しようとしてるからかな

class A {
 const(int[]) aaa;
 this() {
  aaa.length = 1;
  aaa[0] = 1; // これは通らない
  aaa = [1]; // これは通る
 }
}