Parameters cant be passed through nested components
Given three components where NetworkA is expected to pass through the parameter convChannels to the instance of NetworkB, an Exception occurs when the component is being resolved:
java.lang.IllegalStateException: The following names could not be resolved: convChannels,convChannels
at de.monticore.lang.monticar.cnnarch._symboltable.ResolvableSymbol.resolveOrError(ResolvableSymbol.java:80)
at de.monticore.lang.monticar.cnnarch._symboltable.StreamInstructionSymbol.resolve(StreamInstructionSymbol.java:32)
at de.monticore.lang.monticar.cnnarch._symboltable.ResolvableSymbol.resolveOrError(ResolvableSymbol.java:78)
at de.monticore.lang.monticar.cnnarch._symboltable.ArchitectureSymbol.resolve(ArchitectureSymbol.java:179)
component NetworkB (Z convChannels) {...}
component NetworkA (Z convChannels){ ports ...; instance NetworkB<10> (convChannels) netB; ...}
component Main{ instance NetworkA<10> (20) net1;}