Don’t laugh but I’m wondering why print-tab says
scala> - -42 //print
-.`unary_-` // : <error>
So what I’d like in REPL is a mode to show me the parse tree or expression tree with values, similar to expecty power asserts.
Someone was just asking about mixing operators such as this artificial example:
scala> 42 $plus 1 == 43
^
error: overloaded method + with alternatives:
(x: Double)Double <and>
(x: Float)Float <and>
(x: Long)Long <and>
(x: Int)Int <and>
(x: Char)Int <and>
(x: Short)Int <and>
(x: Byte)Int <and>
(x: String)String
cannot be applied to (Boolean)
but the OP op was an ordinary method name.