cyclonedds-python icon indicating copy to clipboard operation
cyclonedds-python copied to clipboard

Error in IDL generator with structs inheritance which identifiers are Python keywords

Open Bit-Seq opened this issue 2 years ago • 0 comments
trafficstars

Hello,

I have detected an error in IDL generator with structs inheritance which identifiers are Python keywords.

module module_test {
    struct and {
        char var;
    };
    struct child : and {
        char var2;
    };
};

This problem is related to the solution we gave on #105. This case couldn't be tested because bug #162 wasn't fixed by then. So, we couldn't test and verify structs inheritance with keywords. As soon as #172 will be solved I will be able to test this error, but I have locally solved this issue. I will share a PR with it.

Best regards.

Bit-Seq avatar Nov 29 '22 12:11 Bit-Seq