Skip to content

Commit

Permalink
Fix :ballerina-langlib:test:test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
lochana-chathura committed Nov 7, 2024
1 parent 2cabfab commit 6b38208
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1699,15 +1699,7 @@ public boolean isTypeCastable(BType source, BType target) {
return true;
}

boolean validTypeCast = intersectionExists(sourceSemType, targetSemType);
if (validTypeCast) {
if (isValueType(sourceType)) {
setImplicitCastExpr(expr, sourceType, symTable.anyType);
}
return true;
}

return false;
return intersectionExists(sourceSemType, targetSemType);
}

public boolean containsErrorType(SemType t) {
Expand Down

0 comments on commit 6b38208

Please sign in to comment.