Extending an object with a trait which needs implicit member
问题 I'm trying to have a code like below: object MetaData extends CacheParams{} So, since CacheParams needs implicit val p:Parameters , I tried: object MetaData (implicit val p: Parameters) extends CacheParams But it seems that I can't pass arguments to an object. ( because it gives error: traits or objects may not have parameters ) And if I don't pass any arguments it will give compile error that: [error]: object creation impossible, since value p in trait CacheParams of type Parameters is not