Hi ![]()
I think variant "b is a" - valid, but compiler say no
class A{}
class B : A{}
void startGame( string ¶m )
{
A @a;
B @b;
if( a is b )
{}
if( b is a ) // No conversion from 'A@&' to 'B@' available.
{}
}
Posted 15 February 2013 - 07:03 AM
Yes, you're probably right. The compiler should probably try an implicit cast of the first operand if the implicit cast of the second operand is not possible.
I'll look into this.