list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

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 an explicit
// use of a trait inside of itself.
class A{
	isA T;
}

trait T{
  isA T;
}
      

Load the above code into UmpleOnline