我如何让它编译?
代码
object Playground2 {
trait Client[S,A] {
def wrap[S,A](v: A): (S,A)
}
class TestClient extends Client[String, Int] {
override def wrap[String,Int](v: Int): (String, Int) = ("cache 2.00", v)
}
}
错误 类型不匹配;发现:java.lang.String("cache 2.00") required: String