cat > bug.d << CODE struct Foo(T) { shared static this() { } static this() { } } CODE dmd -c -o- -H bug.d cat bug.di // D import file generated from 'bug.d' template Foo(T) { struct Foo { shared static this(); static this(); } } -------- Thus the static constructors are not run.
https://github.com/D-Programming-Language/dmd/pull/829
*** Issue 7611 has been marked as a duplicate of this issue. ***
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/311d1701d6dc7c454f03fca4d84f62e157e14e5a Merge pull request #829 from 9rnsr/fix7754 Issue 7754 - static this() in template is stripped during header gen
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル