My scala repl is not showing the logs on the screen as some books and forums seem to suggest. I am on scala 2.12.1. My scala repl when I try below syntax
scala> def sum(a:Int, b:Int) = a+ b
sum: (a: Int, b: Int)Int
Should show as below
scala> val fun2 = sum _
fun2: (Int, Int) => Int = <function2>
But it is showing as below:
scala> val fun2 = sum _
fun2: (Int, Int) => Int = $$Lambda$1623/2005055216@13bdf19
It is not showing the trait like <function2>
etc. How do I fix this?