隐含的不止一个

时间:2020-10-22 11:35:37

标签: scala playframework implicit

当编译器发现多个隐式代码时,如何使我的代码选择一个特定的隐式代码:

ambiguous implicit values:
[error]  both method writes in trait Implicits of type [A](implicit evidence$1: models.Foo[A])play.api.libs.json.Writes[A]
[error]  and method stringableWrites in trait LowPriorityWrites of type [T](implicit conv: T => String)play.api.libs.json.Writes[T]

0 个答案:

没有答案
相关问题