I have the following scenario:
case class B(v: String)
case class A(bs: Seq[B])
extension(a: A)
def doit() = a.bs.map(_.doit()) // here is the exception
extension(b: B)
def doit() = println("OK: ${b.v}")
This gives me the following exception on compilation:
value doit is not a member of B.
An extension method was tried, but could not be fully constructed:
_$1
Are there restrictions in the naming of extension methods in Scala 3?
See the example here on Scastie