Is it possible to define two implicits with default values

前端 未结 0 1945
悲哀的现实
悲哀的现实 2021-01-23 22:33

I would like to be able to use a case class something like:

case class A[T](item: T)(implicit refine: T => T = (t: T) => t)

A("Hello")
A("Wo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题