Guest User

Untitled

a guest
Aug 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. 4 more arguments than can be applied to method apply: (errors: Option[Seq[String]], result: String)Playground.this.IncompleteDecisionItem in object IncompleteDecisionItem
  2. Note that 'engine', 'loanAmount', 'loanTerm', 'lvr', 's3ObjectLink', 'timestamp' are not parameter names of the invoked method.
  3.  
  4. trait DecisionItem {
  5. val engine : String = "Pepper"
  6. val loanAmount : Int
  7. val loanTerm : Int
  8. val lvr : Int
  9. val result : String
  10. val s3ObjectLink : String
  11. val timestamp : String
  12. }
  13.  
  14. case class IncompleteDecisionItem(
  15. val errors: Option[Seq[String]] = None,
  16. val result: String = "Incomplete"
  17. ) extends DecisionItem
  18.  
  19. IncompleteDecisionItem(
  20. engine = "Pepper",
  21. loanAmount = 222222,
  22. loanTerm = 300,
  23. lvr = 200,
  24. s3ObjectLink = "google cloud platform",
  25. timestamp = "million years in Japan"
  26. )
Add Comment
Please, Sign In to add comment