Bug 7816 – non-virtual template methods in interface unsupported

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-03T11:33:00Z
Last change time
2012-04-04T17:44:34Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-04-03T11:33:50Z
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.
Comment #1 by yebblies — 2012-04-04T17:44:34Z
*** This issue has been marked as a duplicate of issue 4174 ***