From ae6255a30a93dfccdb8a52b20387235584e5dba5 Mon Sep 17 00:00:00 2001 From: Maximilian Ernst Date: Wed, 7 Aug 2024 14:29:47 +0200 Subject: [PATCH] dont allow fixed and labeled parameters --- src/frontend/specification/StenoGraphs.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/specification/StenoGraphs.jl b/src/frontend/specification/StenoGraphs.jl index 67bb7973c..76bd69e06 100644 --- a/src/frontend/specification/StenoGraphs.jl +++ b/src/frontend/specification/StenoGraphs.jl @@ -68,6 +68,13 @@ function ParameterTable( ) end if element isa ModifiedEdge + if any(Base.Fix2(isa, Fixed), values(element.modifiers)) & any(Base.Fix2(isa, Label), values(element.modifiers)) + throw( + ArgumentError( + "It is not allowed to label fixed parameters." + ) + ) + end for modifier in values(element.modifiers) modval = modifier.value[group] if modifier isa Fixed