Skip to content

Commit

Permalink
Correct error where occurrences was output for closed slots. See AWB-4
Browse files Browse the repository at this point in the history
  • Loading branch information
wolandscat committed Jan 19, 2024
1 parent f662f34 commit 3c08c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/adl_compiler/src/comparator/rm_flattener.e
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ feature {NONE} -- Implementation
raise ("rm_node_flatten_enter location #1")
end
end
elseif attached {C_OBJECT} a_c_node as co then
elseif attached {C_OBJECT} a_c_node as co and not (attached {ARCHETYPE_SLOT} a_c_node as slot and then slot.is_closed) then
-- here the logic is a bit trickier: there is no such thing as 'occurrences' in the reference model
-- so it is set from the enclosing attribute cardinality if a container, or set to RM existence if not a container
if not attached co.occurrences then
Expand Down

0 comments on commit 3c08c60

Please sign in to comment.