Skip to content

Commit

Permalink
Use referred type when creating typedesc for maps
Browse files Browse the repository at this point in the history
  • Loading branch information
rdulmina committed Nov 21, 2024
1 parent b189a55 commit bc42da5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ private void createTypedescVariable(BType type, Location pos) {
if (type.tag == TypeTags.TYPEREFDESC) {
BType referredType = ((BTypeReferenceType) type).referredType;
int tag = referredType.tag;
if (tag == TypeTags.RECORD) {
if (tag == TypeTags.RECORD || tag == TypeTags.MAP) {
type = referredType;
}
}
Expand Down

0 comments on commit bc42da5

Please sign in to comment.