Welcome to Scala 2.12.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_92).
Type in expressions for evaluation. Or try :help.
scala> def f(x: Int) = 10 + x -> "ok"
f: (x: Int)(Int, String)
scala> f(10)
res0: (Int, String) = (20,ok)
scala> def g(x: Int) = 20 + x → "oops"
:11: error: overloaded method value + with alternatives:
(x: Double)Double
(x: Float)Float
(x: Long)Long
(x: Int)Int
(x: Char)Int
(x: Short)Int
(x: Byte)Int
(x: String)String
cannot be applied to ((Int, String))
def g(x: Int) = 20 + x → "oops"
^