比如说定义了Rational 类 使用Int 类型和Rational相加时,是在 Rational类里加上这一句吗?implicit def intToRational(x:Int) = new Rational(x) 需要怎么写呢