Possible forward reference bug?

Benjamin Thaut code at benjamin-thaut.de
Tue Feb 4 11:46:44 PST 2014


The following code will trigger the static assertion:

class Base(T)
{
   static assert(is(T : Base!T), "not related");
}

class Derived : Base!Derived
{
}


Could this be a forward reference bug? Because Derived is derived from 
Base!Dervived, so the is expression should return true.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list