|
E095 Duplicate Enumerations
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] E095 Duplicate EnumerationsUmple semantic error reported when duplicate enumerations are detectedIn Umple, enumerations must have unique names. Example
// This example causes the error
enum Month {x,y,z}
enum Month {o,p,q}
class A{
Month m;
Month p;
}
Load the above code into UmpleOnline Another Example
// This example causes the error
class A{
enum Month {x,y,z}
enum Month {o,p,q}
}
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
// This example does not cause the error.
// The enumeration within the class
// is prioritized over the enumeration
// defined outside of the class
enum Month {x,y,z}
class A{
enum Month {o,p,q}
Month m;
Month p;
}
Load the above code into UmpleOnline |