January 22, 2009 [Issue 2538] Final method is not involved in inteface method resolution | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2538 ------- Comment #10 from maxmo@pochta.ru 2009-01-22 05:23 ------- Workaround: --- module Test; interface NetworkListener { void onConnect(); } class SoundManager : private NetworkListener { protected final void onConnect() { } } void main() { auto a=new SoundManager(); auto b=cast(NetworkListener)a; b.onConnect(); } --- -- |
Copyright © 1999-2021 by the D Language Foundation