Returns true if Child has an alias this of type Parent, and as such is implicitly convertable.
The base class to test.
The parent class to test.
Whether Child has an alias this of Parent.
struct A { } struct B { A a; alias a this; } struct C { } assert( hasAliasThis!( B, A ) ); assert( !hasAliasThis!( C, A ) ); assert( !hasAliasThis!( A, C ) ); assert( !hasAliasThis!( float, bool ) );
See Implementation
Returns true if Child has an alias this of type Parent, and as such is implicitly convertable.