Instantiating RefCounted with a class or interface type should reference-count the actual instance and not just a class reference. To this end, RefCounted currently rejects instantiating with class types for forward-compatibility purposes (at least I'm pretty sure that's why it does it).
Comment #1 by jakobovrum — 2015-02-11T04:09:47Z
(In reply to Jakob Ovrum from comment #0)
> Instantiating RefCounted with a class or interface type should
> reference-count the actual instance and not just a class reference. To this
> end, RefCounted currently rejects instantiating with class types for
> forward-compatibility purposes (at least I'm pretty sure that's why it does
> it).
I filed a PR to reject interface types as well until class support is properly implemented:
https://github.com/D-Programming-Language/phobos/pull/2977
Comment #2 by robert.schadek — 2024-12-01T16:23:46Z