Skip to content

2023-09-26-2224605: #1992: Fix enum item redeclaration error on reimport

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Sep 20:07
· 291 commits to main since this release
2224605

Fixes #1988.

The error is caused by the enum being added during the iteration of the design, and then again during the iteration of uhdmtopModules. Because the original enum is added at the top level, we don't see it so we add it again to individual modules.

Instead of adding typedefs at the top level, this patch makes it so we add it to each top module. Same thing with top-level parameters, as they may require these typedefs.