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 Nov 18, 2024
1 parent f5aa78d commit 04cb468
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ public class Types {
private final BLangDiagnosticLog dlog;
private final Names names;
private int finiteTypeCount = 0;
private final BUnionType expandedXMLBuiltinSubtypes;
private final BLangAnonymousModelHelper anonymousModelHelper;
private final int recordCount = 0;
private SymbolEnv env;
Expand Down Expand Up @@ -1472,6 +1471,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 04cb468

Please # to comment.