Following code compile fails with https://github.com/D-Programming-Language/dmd/commit/3fcc2344681ab9d31d1897188f36051c9beb247f ---- template TTest1() { int call(){ return this.g(); } } class CTest1 { int f() { mixin TTest1!(); return call(); } int g() { return 10; } } void main() { assert((new CTest1()).f() == 10); } ---- test.d(3): Error: 'this' is only defined in non-static member functions, not call test.d(7): Error: mixin test.CTest1.f.TTest1!() error instantiating ----
https://github.com/D-Programming-Language/dmd/commit/5a1f396e915e083ce30c5f09f4e1ef1a9e704fda
https://github.com/D-Programming-Language/dmd/commit/8359ec9e14dc7294360d954325aacd4dcaed35c7
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル