April 03, 2012 [Issue 7816] New: non-virtual template methods in interface unsupported | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7816 Summary: non-virtual template methods in interface unsupported Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: dawg@dawgfoto.de --- Comment #0 from dawg@dawgfoto.de 2012-04-03 11:33:50 PDT --- cat > bug.d << CODE class Foo { final void fcall(T)(T t) { } static void scall(T)(T t) {} } interface Bar { final void fcall(T)(T t) { } static void scall(T)(T t) {} } class Baz : Bar {} void test() { Foo foo; foo.fcall(2); foo.scall(2); Bar bar; bar.fcall(2); bar.scall(2); Baz baz; baz.fcall(2); baz.scall(2); } CODE dmd -c bug.d -------- Templates should be able to add methods that are proven to be non-virtual. This already works for classes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 05, 2012 [Issue 7816] non-virtual template methods in interface unsupported | ||||
---|---|---|---|---|
| ||||
Posted in reply to dawg@dawgfoto.de | http://d.puremagic.com/issues/show_bug.cgi?id=7816 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #1 from yebblies <yebblies@gmail.com> 2012-04-05 10:44:34 EST --- *** This issue has been marked as a duplicate of issue 4174 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation