Skip to content

Commit

Permalink
Add changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
aashikam committed Apr 9, 2024
1 parent a75ef86 commit 2bffcbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private static RecordType getRecordType(Type type) {

private static Type getPayloadType(Type definedType) {
if (definedType.getTag() == INTERSECTION_TAG) {
return ((IntersectionType) definedType).getConstituentTypes().get(0);
return TypeUtils.getReferredType(definedType);
}
return definedType;
}
Expand Down

0 comments on commit 2bffcbc

Please sign in to comment.