Skip to content

Commit

Permalink
Update the incompatible check
Browse files Browse the repository at this point in the history
  • Loading branch information
poorna2152 committed Mar 28, 2024
1 parent a4663e8 commit c0d3b15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2575,7 +2575,7 @@ public BType checkMappingConstructorCompatibility(BType bType, BLangRecordLitera
if (!erroredExpType) {
reportIncompatibleMappingConstructorError(mappingConstructor, bType, data);
}
checkExpr(mappingConstructor, symTable.noType, data);
defineInferredRecordType(mappingConstructor, symTable.noType, data);
return symTable.semanticError;
} else if (compatibleTypes.size() != 1) {
dlog.error(mappingConstructor.pos, DiagnosticErrorCode.AMBIGUOUS_TYPES, bType);
Expand Down

0 comments on commit c0d3b15

Please sign in to comment.