package TestPackage
public
system sys
end sys;
system implementation sys.impl
subcomponents
test : device TestSensor;
annex agree {**
eq test : int = 100;
**};
end sys.impl;
device TestSensor
end TestSensor;
end TestPackage;
But it is not triggered with the following code:
package TestPackage
public
system sys
annex agree {**
eq test : int = 100;
**};
end sys;
system implementation sys.impl
subcomponents
test : device TestSensor;
end sys.impl;
device TestSensor
end TestSensor;
end TestPackage;
Validator check in question (lines 1939-1948 specifically):
https://github.com/loonwerks/AGREE/blob/8d101f31460c3f539bb06d6ed123fdcb4226ee96/com.rockwellcollins.atc.agree/src/com/rockwellcollins/atc/agree/validation/AgreeValidator.java#L1899-L1951
The error is flagged with this code:
But it is not triggered with the following code: