DMD 2.058 class Test { void test(T, bool a = true)(T t) { } } void main() { auto test = new Test; pragma(msg, typeof(test.test!(int, true)).stringof); pragma(msg, typeof(test.test!(int)).stringof); // Error: expression (test.test!(int)) has no type } Doesn't happen if test is a free function or a nested function.
https://github.com/D-Programming-Language/dmd/pull/766
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9225eea616ceb84e3b04d4e27c4d75db69fd282f Merge pull request #766 from 9rnsr/fix7563 Issue 7563 - Class members with default template arguments have no type
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル