A port connection between ports inside feature groups gets an error, but changing it to a feature connection is acceptable.
Expected and Current Behavior
I would have thought a port connection from a port to a port would be legal.
Steps to Reproduce
See example below.
-- See comments below. Just seems odd.
package NestedConnection
public
feature group aGroup
features
inPort: in data port;
end aGroup;
system HasOutPort
features
outPort: out data port;
end HasOutPort;
system HasInGroup
features
inGroup: feature group aGroup;
end HasInGroup;
system NestedConnection
end NestedConnection;
system implementation NestedConnection.Impl
subcomponents
sysOut: system HasOutPort;
sysIn: system HasInGroup;
connections
-- It seems odd that the following is legal ...
out_in_feature: feature sysOut.outPort -> sysIn.inGroup.inPort;
-- ... but the following is not.
out_in_port: port sysOut.outPort -> sysIn.inGroup.inPort;
end NestedConnection.Impl;
end NestedConnection;
Summary
A port connection between ports inside feature groups gets an error, but changing it to a feature connection is acceptable.
Expected and Current Behavior
I would have thought a port connection from a port to a port would be legal.
Steps to Reproduce
See example below.
Environment