template Foo() { const char[] Foo = []; } static assert (Foo!() == ""); // ok pragma(msg, Foo!()); // fails (1) mixin("int i;" ~ Foo!()); // fails (2) void main() { } ---- Error messages without line or file: (1) pragma msg string expected for message, not '[]' (2) attribute argument to mixin must be a string, not ("int i;" ~ [])
*** Issue 2391 has been marked as a duplicate of this issue. ***
Fix for D2 https://github.com/D-Programming-Language/dmd/pull/180
*** Issue 6462 has been marked as a duplicate of this issue. ***
https://github.com/D-Programming-Language/dmd/commit/842db08516f0606ea9b278d179f8f7c51776f805 https://github.com/D-Programming-Language/dmd/commit/ff1965347d6ff2b0c3ebb71ff7c06254aba38c66
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル