[Issue 2538] Final method is not involved in inteface method resolution
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 22 03:23:37 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2538
------- Comment #10 from maxmo at 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();
}
---
--
More information about the Digitalmars-d-bugs
mailing list