[groovy] fix typo

This commit is contained in:
Daniil Ovchinnikov
2017-01-25 14:39:57 +03:00
parent ba9f7c418a
commit e4d3ecba8a
@@ -411,7 +411,7 @@ public class TypesUtil implements TypeConstants {
public static ConversionResult canCast(@NotNull PsiType targetType, @NotNull PsiType actualType, @NotNull PsiElement context) {
final ConversionResult result = areTypesConvertible(targetType, actualType, context, ApplicableTo.EXPLICIT_CAST);
if (result != null) return result;
return TypeConversionUtil.areTypesConvertible(targetType, actualType) ? ConversionResult.OK : ConversionResult.ERROR;
return TypeConversionUtil.areTypesConvertible(actualType, targetType) ? ConversionResult.OK : ConversionResult.ERROR;
}
@NotNull