Extension Methods - Dotty vs Scala2

Typeclass in Scala