Compiler allows the following: -- class X { void f(T)() { } } void main() { (new X).f!(int)(); } -- This is due (at least partially) to the use of toParent() instead of toParent2() to in FuncDeclaration::semantic, FuncDeclaration::isVirtual, and Dsymbol::isMember.
Maybe add the implementation hint to bug 566 as well. *** This bug has been marked as a duplicate of 566 ***
This actually came from a SourceForge bug report. The original specifies interface methods. In this case, the code fails to link, but there should be a proper error message. ---- interface TestInterface { void tpl(T)(); } class TestImplementation : TestInterface { void tpl(T)() { } } void main() { /* TestImplementation t = new TestImplementation(); // works */ TestInterface t = new TestImplementation(); // fails t.tpl!(int)(); } ---
Oops, didn't realize 566 was still open. *** This bug has been marked as a duplicate of 566 ***
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル