81 |
// check if could cast directly to enclosing cast type, without intermediate type cast |
81 |
// check if could cast directly to enclosing cast type, without intermediate type cast |
82 |
CastExpression alternateCast = new CastExpression(null, enclosingCast.type); |
82 |
CastExpression alternateCast = new CastExpression(null, enclosingCast.type); |
84 |
if (!alternateCast.checkCastTypesCompatibility(scope, enclosingCast.resolvedType, nestedCast.expression.resolvedType, nestedCast.expression)) { |
84 |
if (!alternateCast.checkCastTypesCompatibility(scope, enclosingCast.resolvedType, nestedCast.expression.resolvedType, null /* no expr to avoid side-effects*/)) return; |