uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

E204 Self Use of Traits

Umple semantic error related to self use of traits

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 use. 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