uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

E204 Self Inheritance

Umple semantic error related to self inheritance

In Umple, traits cannot be used in an explicit or implicit cyclic way. It means that a trait cannot use itself and it also cannot be used in a cyclic hierarchy. This error happens when a trait extends itself.

Example

// In this example, there is a explicit use of a trait inside of itself.
class A{
	isA T;
}

trait T{
  isA T;
}
      

Load the above code into UmpleOnline