for quite some time I am stuck with the above task.
I simply cannot get my FireAlarm trait working so I can add some logic to the CompositeLocation trait in there.
If I do this:
Code: Alles auswählen
trait FireAlarm extends SmartHome {
trait CompositeLocation[L <: Location] extends super.CompositeLocation[L] with TLocation {
println("Test")
}
}
I mixin the trait like in the task:
Code: Alles auswählen
class MySmartHome extends SimulatedSmartHome with FireAlarm