Skip to content

Commit

Permalink
Merge pull request #37 from SasinduDilshara/fix_7008
Browse files Browse the repository at this point in the history
Remove the union compiler type validator
  • Loading branch information
SasinduDilshara authored Sep 20, 2024
2 parents 4a8ec18 + 4056415 commit 6573056
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ private void checkTypeAndDetectDuplicateFields(TypeSymbol typeSymbol, SyntaxNode
checkTypeAndDetectDuplicateFields(memberType, ctx);
}
}
case UNION -> {
for (TypeSymbol memberType : ((UnionTypeSymbol) typeSymbol).memberTypeDescriptors()) {
checkTypeAndDetectDuplicateFields(memberType, ctx);
}
}
// commented due to the https://github.com/ballerina-platform/ballerina-library/issues/7010
// case UNION -> {
// for (TypeSymbol memberType : ((UnionTypeSymbol) typeSymbol).memberTypeDescriptors()) {
// checkTypeAndDetectDuplicateFields(memberType, ctx);
// }
// }
case TYPE_REFERENCE -> checkTypeAndDetectDuplicateFields(
((TypeReferenceTypeSymbol) typeSymbol).typeDescriptor(), ctx);
case INTERSECTION -> checkTypeAndDetectDuplicateFields(getRawType(typeSymbol), ctx);
Expand Down

0 comments on commit 6573056

Please sign in to comment.