Do we have abstract extension functions in scala 3?

Something like this?

trait Mergeable[A]:
  extension (a1: A)
    infix def merge(a2: A): Option[A]

The code above is compiled but I couldn’t find a way to implement it.

2 Likes

Thanks @BalmungSan, I swear I tried this for hours :smiley:

1 Like