Commit 52cf65ba authored by Adam Knapp's avatar Adam Knapp
Browse files

Enumerated type subtype check (issue #448)


Signed-off-by: Adam Knapp's avatarAdam Knapp <adam.knapp@ericsson.com>
parent 2039907a
......@@ -301,6 +301,11 @@ public final class SubType implements IIncrementallyUpdateable {
ref.getDisplayName()));
return false;
}
if (this.subtypeType == SubType_type.ST_ENUM) {
value.getLocation().reportSemanticError(
"Type references are not allowed in the template list of enumerated types");
return false;
}
// check circular sub-type reference
if (!addParentSubtype(tSt)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment