Scala inherited parsing method

I am handling some compilation errors (in Scala / Play Framework) and one that I cannot resolve is the conflict error. This is mistake:

class Games inherit conflicting elements:

[error] parsing method in the BaseController attribute Type references => play.api.mvc.PlayBodyParsers and

[error] lazy parsing on BodyParsers of type play.api.mvc.PlayBodyParsers [error] (Note: this can be resolved by declaring an override in the Games classes.)

And this is the function (or class) for the class:

   class Games @Inject() (cc: ControllerComponents, actorSystem: ActorSystem)(val reactiveMongoApi: ReactiveMongoApi)(implicit mat: Materializer) extends AbstractController(cc) with MongoController with ReactiveMongoComponents {

      

In the error message, you will notice that it says that:

this can be solved by declaring an override in the Games class

But after trying a few things, I'm not sure how to go about it. If anyone has any suggestions for this or any other method that might resolve this error, please post. Thanks to

+3
scala playframework body-parser reactivemongo play-reactivemongo


source to share


No one has answered this question yet

Check out similar questions:

790
Is the Scala 2.8 collection library "the longest suicide record in history"?
676
Scala vs. Groovy vs. Clojure
36
Coding standard ML modules to OO
27
Why can't a class extend traits with a method of the same signature?
five
Are traits in Scala an interface or an abstract class?
3
Scala: is it possible to override val in a subclass constructor?
3
Overriding implicit trait setter method in Scala
2
Scala class inheritance and method parameters
1
Scala DI using trait vs abstract class with user type annotation?
1
How to solve inheritance of conflicting members in Scala



All Articles
Loading...
X
Show
Funny
Dev
Pics