Skip to content

Missing validation for reference value with array indicies #2159

@joeseibel

Description

@joeseibel

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions