Skip to content

Commit

Permalink
Set annotation for the referred type if it is record
Browse files Browse the repository at this point in the history
Previously we set the annotation for record type only. Now we set for both the type reference type and record type
  • Loading branch information
rdulmina committed Nov 19, 2024
1 parent f9da8b6 commit e5f1afc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public static void processAnnotations(MapValue<BString, Object> globalAnnotMap,

if (type.getTag() == TypeTags.TYPE_REFERENCED_TYPE_TAG) {
Type impliedType = TypeUtils.getImpliedType(type);
if (impliedType.getTag() == TypeTags.RECORD_TYPE_TAG) {
processAnnotations(globalAnnotMap, impliedType);
return;
}
if (isNonObjectType(impliedType.getTag())) {
return;
}
Expand Down

0 comments on commit e5f1afc

Please sign in to comment.