Hello René,
so it has nothing to do with the order of the functions in the header. #ifdef and other constructs also seem to work fine.
I seem to get less errors by reducing the number of headers I import (even though i thougth Yakindu doesnt support transitive imports?).
I now only have one type of error left and as you suggested, its got something to do with typedefs (i think).
In my included headers are some typedefs(enums) and those seem to get imported, i can see them in the Project Explorer, i can see the functions using them correctly in the Project Explorer.
I can also use the enums in my Statechart (content assist also working) but when i try to use functions that make use of them, i'm getting 2 types of errors.
1.
used- (state-"entry/"): someFunction(someEnum)
error: Incompatible types [someEnum]__type and UnsupportedType. [...].sct / [...]/ [...](sct) line: 1 / [...]/ [...]/ [...].sct Statechart Check (Fast)
2.
used- (transition guard): someFunctionGetsEnum() == someEnum.someEnumerator
error:
Comparison operator '==' may only be applied on compatible types, not on UnsupportedType and [someEnum]__type. [...].sct / [...]/ [...](sct) line: 1 / [...]/ [...]/ [...].sct Statechart Check (Fast)
Image shows the Project Explorer, Content Assist and Problems.
I'm still trying to reproduce it on a smaller scale, so i can send you an example project.
Thanks,
Simeon