This is valid D2 code, but couldn't compile. ---- struct S { const int value; this()(int n){ value = n; } } void main() { S s = S(10); } ---- test.d(4): Error: can only initialize const member value inside constructor test.d(8): Error: template instance test.S.__ctor!() error instantiating ----
https://github.com/D-Programming-Language/dmd/pull/266
https://github.com/D-Programming-Language/dmd/commit/696e5b3df672dc1972c14f93f6f8f88d4559b8a9 https://github.com/D-Programming-Language/dmd/commit/9c70f902c69875e65935d72b9b6d26061cf3470f https://github.com/D-Programming-Language/dmd/commit/8469fd01c4964a1dabd1dc0848e6321b35d7e2dd
*** Issue 6427 has been marked as a duplicate of this issue. ***
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル