E051 Event Parameters Must Match
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E051 Event Parameters Must MatchUmple semantic error reported when events with the same name have different parametersWhen parameters are specified on a state machine event, all transitions with the same event name must have identical parameters, both in name and type. The reason for this is that there is only one event method generated. Example// This example generates the error message class X { sm { s1 { e1(String s) -> s2; } s2 { e1(Float f) -> s2; } } } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears// This example solves the problem class X { sm { s1 { e1(String s) -> s2; } s2 { e1(String s) -> s2; } } } Load the above code into UmpleOnline |