here is a quick example:
trait A(delegate: Any = this) // this won't work in Scala 2.13
object A1 extends A(A1)
trait B extends A(A1) // still doensn't work
/*
trait B may not call constructor of trait A
trait B extends A(A1)
*/
- what’s the cause of this limitation? can it be lifted later?
- are there other limitations like this? can we have a list in a document (e.g. Tools | Scala 3 — Book | Scala Documentation) as a reference