The following example is from the book \'Programming in Scala\'. Given a class \'Rational\' and the following method definition:
def add(that: Rational): Rat
You haven't specified the binary + operator, you've specified the unary + operator.
So instead of:
def +(that: Int): Rational = +(new Rational(that, 1))
You need to write this:
def +(that: Int): Rational = this +(new Rational(that, 1))