我正在尝试做这样的事情:
trait BaseMongoDAO[T <: IdentifiableModel with CaseClass] {
implicit val manifest: Manifest[T]
........ some implicit manifest usage here
}
trait MongoUserRepository extends BaseMongoDAO[User] with UserRepository {
override val manifest = Manifest.classType(User.getClass)
........ implementing UserRepository here
}
但它似乎不起作用,它说我的清单是不兼容的类型。
我做错事情了?