Skip to content

Commit

Permalink
Fix multi-level inheritance
Browse files Browse the repository at this point in the history
The base type of a struct needs to actually be scanned for further dependencies.

Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Jun 18, 2024
1 parent 8a1486b commit 5cd7166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cyclonedds/idl/_xt_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ def gather_types(cls, _type):
if scan_node_name not in graph:
graph[scan_node_name] = set()
graph_types[scan_node_name] = discriminator_type
toscan.append(discriminator_type)

graph[my_node_name].add(scan_node_name)

Expand All @@ -423,6 +424,7 @@ def gather_types(cls, _type):
if scan_node_name not in graph:
graph[scan_node_name] = set()
graph_types[scan_node_name] = base_type
toscan.append(base_type)

graph[my_node_name].add(scan_node_name)

Expand Down

0 comments on commit 5cd7166

Please sign in to comment.