Generics Inistialization in SubComponents does not work correctly, when Generics of parent component are used as value
Example:
component ComponentA<N value = 1>{
instance ComponentB<value> compB; // in compB instance creation the default value will be used
}
component ComponentB<N value = 2>{
port in Z testPorts[value];
}
component ComponentC{
instance ComponentA<5> compA;
}
Should be fixed in Generics Resolution in EmbeddedMontiArc language. (ExpandedComponentInstance creation should probably be changed, as the error is related to this)