|
W066 Transition Multiple Possible Destinations
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] W066 Transition Multiple Possible DestinationsUmple semantic warning issued when a transition has multiple possible destinations
If a transition's destination state name has multiple occurrences in the state machine,
this warning will be issued, as it is possible the developer means to reference a specific
substate of the same name. The dot notation should be used to clarify which substate is
intended to be the destination state.
Example
//The following generates the warning
//as s1 could designate both s1 and s2.s1
//By default, it is s1
class A {
sm {
s1 {
e -> s1;
}
s2 {
s1 {
}
}
}
}
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
//The warning does not occur
//by removing the ambiguity
class A {
sm {
s1 {
e -> s2.s1;
}
s2 {
s1 {
}
}
}
}
Load the above code into UmpleOnline |