首页 > 解决方案 > More Than One Implicits Being Picked Up

问题描述

How do I make my code choose one specific implicit when the compiler finds more than one:

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]

标签: scalaplayframeworkimplicit

解决方案


推荐阅读