Skip to content

Commit ae6255a

Browse files
dont allow fixed and labeled parameters
1 parent 55f9087 commit ae6255a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/frontend/specification/StenoGraphs.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ function ParameterTable(
6868
)
6969
end
7070
if element isa ModifiedEdge
71+
if any(Base.Fix2(isa, Fixed), values(element.modifiers)) & any(Base.Fix2(isa, Label), values(element.modifiers))
72+
throw(
73+
ArgumentError(
74+
"It is not allowed to label fixed parameters."
75+
)
76+
)
77+
end
7178
for modifier in values(element.modifiers)
7279
modval = modifier.value[group]
7380
if modifier isa Fixed

0 commit comments

Comments
 (0)