I'm trying to override toString using conditional statements. But I'm getting an error that says there is a type mismatch. It is supposed to be in String type and right now it's in Any type. noGoals, Tied are functions that returns true or false.
override def toString = {
if (this.noGoals)
s"${this.home} vs. ${this.away} at ${this.location}: no goals"
else if (this.Tied)
s"${this.home} vs. ${this.away} at ${this.location}: tied"
}