=== Testcase === void main() { ubyte id; void[] v = [id] ~ [id]; } === Compiler output === test.d(4): Error: cannot implicitly convert expression ([id,id]) of type ubyte[] to void[] === Testcase end === Adding [] after either [id] allows the code to compile. This is probably related to #3068, if it isn't actually the same bug...
Nothing to do with concatenation, array literals don't convert to void[]. void main() { ubyte id; void[] v = [id]; } https://github.com/D-Programming-Language/dmd/pull/371
https://github.com/D-Programming-Language/dmd/commit/fe4e4ec6c50664f484e883337a8ab3614a704f6d https://github.com/D-Programming-Language/dmd/commit/554f3c781222b442afa4196288d62dcef4163add
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル