scala programming

Context parameters with type parameter can be replaced with syntactic sugar scala provides as,

def renderDialog[T: Theme](content: String): String =
    renderBox(s"This is $content")

So, compiler will transform this to

def renderDialog[T](content: String)(using _: Theme[T]): String =
     renderBox(s"This is $content")

References

  1. Context bounds Scala 3