I ran into an interesting scenario in Scala. It seems then I have a base trait that defines other traits, the implementation cannot find the base trait not matter what.
I created this base trait simple for convenience that I don't need to redefined these traits on every implementation. Do anyone know why this doesn't work?
object Base { trait Create trait Delete } trait BaseTrait { trait Create extends Base.Create trait Delete extends Base.Delete } object Implementation extends BaseTrait object Something { class SomeClass extends Implementation.Create //The trait is not defined. } Update:
The question has been cleared up a bit so that its more precise. The solution as @BrianHsu pointed out is that trait cannot be inherited.