There are two validations that should be added when a reference value contains arrays in the path. Consider the following model:
package pkg1
public
with ps1;
system s1
features
f1: feature[];
f2: feature[10];
properties
ps1::def1 => reference (f1[3]);
ps1::def2 => reference (f2[4 .. 5]);
end s1;
end pkg1;
There should be an error for def1 because the value contains an index, but f1 doesn't have a size. Additionally, there should be a warning for def2 stating that array ranges will not be properly instantiated.
There are two validations that should be added when a reference value contains arrays in the path. Consider the following model:
There should be an error for
def1because the value contains an index, butf1doesn't have a size. Additionally, there should be a warning fordef2stating that array ranges will not be properly instantiated.