--TEST-- The same name constant of a trait used in a class that inherits a constant defined in a parent can be defined only if they are compatible. --FILE-- --EXPECTF-- Fatal error: BaseClass2 and TestTrait2 define the same constant (Constant) in the composition of DerivedClass2. However, the definition differs and is considered incompatible. Class was composed in %s on line %d