Skip to content

Commit

Permalink
Add comment mentioning issue in xml type param
Browse files Browse the repository at this point in the history
  • Loading branch information
poorna2152 committed Oct 18, 2024
1 parent 7fbb5de commit a41fc4a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,7 @@ private boolean isFunctionTypeAssignable(BInvokableType source, BInvokableType t
}

private boolean isTypeParamAssignable(BType sourceParam, BType targetParam) {
// xml is special cased due to this issue: https://github.com/ballerina-platform/ballerina-spec/issues/1319
return isAssignable(sourceParam, targetParam) ||
(isAssignable(sourceParam, symTable.xmlType) && isAssignable(targetParam, sourceParam));
}
Expand Down

0 comments on commit a41fc4a

Please sign in to comment.