Suppose I have:
trait A{
println("A")
}
Now I want to inherit this trait in my Java code:
class B implements A {}
It looks like constructor of trait A is not going to be executed.
Is it possible to force constructor of trait A to be executed in scope of class B?
A$class.something. I suppose, if there is abilities to call trait's regular methods in java's successor, then there should be some way to call a constructor as method as well...