Autodesk / Autodesk/AutomaticComponentToolkit
Out optionalclass is not generating valid code in C++ implementation.
Open
- Dominant language
- Go
- Stars
- 53
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
If there is an out optionalclass value, the code generator creates a base result variable:
IBase * pBaseHandlerInstance(nullptr);
This leads to a compile error of the implementation. The class should be the correct output class, like
ISignalHandler * pBaseHandlerInstance(nullptr);
Contributor guide
Research direction
Locate the code-generator logic that emits pBaseHandlerInstance and reproduce the case with an out optionalclass value. Verify that generated C++ declares the concrete output class, such as ISignalHandler, instead of IBase, and that the implementation compiles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, go
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100