The following code: const ulong[] A = [1UL]; const ulong[] B = A ~ [1UL]; gives: concat.d(2): Error: non-constant expression A ~ [1LU] But changing it to the following works: const ulong[] A = [1UL]; const ulong[] B = getConcat(A, [1UL]); ulong[] getConcat(ulong[] a, ulong[] b) { return a ~ b; }
Could be related to issue 963....
Fixed DMD 1.018 and DMD 2.002
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル