Implicit definition working for Seq but not for Set
问题 So I've made some utility classes and implicit conversions for them. However, it works fine when converting from a Seq but not from a Set, although the code is the same, and those two traits seem rather similar at first sight. What could be the problem, and how would I fix it? import scala.collection.mutable.HashMap trait Indexed[T] { def index: T } class IndexMap[T, V <: Indexed[T]] extends HashMap[T, V] { override def put(key: T, value: V): Option[V] = { require(key == value.index) super