Skip to content

Commit

Permalink
Add one more sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
dziegel committed Aug 23, 2024
1 parent 15d9ce9 commit d220e34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generator/src/generator/Transformations.egl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ operation Tuple transitionTransform(statemachine : Tuple, state : Tuple, trigger
new_all_actions.addAll(all_actions);
transition.transitionTransform(statemachine, state, trigger, new_all_actions);

if (transition.trigger != null) {
("Transition starting from state " + state.name + " with trigger " + trigger + " has a trigger in a choice transition " + transition.trigger + " - this is not supported").errln();
}

if (not transition.guards.isEmpty()) {
self.trans_conditional.add(transition);
} else {
Expand Down

0 comments on commit d220e34

Please sign in to comment.