Bug: Access struct member of a port array
Assume one has created an own struct type and wants to define an array of ports of this type.
Example:
struct MyStruct {
Q myMember;
}
component MyComponent {
port
in MyStruct inputStruct[2],
out Q outputMember;
implementation Math {
outputMember = inputStruct(1).myMember; // could not parse...
}
}
The problem seems to be the inline access of an element of the array and the member of this element at once. It works when one puts it into separat lines.