KT-6530 Do not report "useless cast" when RHS is unresolved
#KT-6530 fixed
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
|
||||
JetType targetType,
|
||||
ExpressionTypingContext context
|
||||
) {
|
||||
if (actualType == null || noExpectedType(targetType)) return;
|
||||
if (actualType == null || noExpectedType(targetType) || targetType.isError()) return;
|
||||
|
||||
if (TypesPackage.isDynamic(targetType)) {
|
||||
JetTypeReference right = expression.getRight();
|
||||
|
||||
Reference in New Issue
Block a user