[REG2.065a] Issue 12023 - template mixin fails within template class

https://d.puremagic.com/issues/show_bug.cgi?id=12023

It is a forward reference issue that was revealed by #2848.