The Scala expression
.3.+(5)
evaluates to 5.3
as a result in Ammonite-REPL, as I expected. In the Scala REPL, though, it yields a syntax error, printing
scala> .3.+(5)
<console>:1: error: ';' expected but double literal found.
$intp.3.+(5)
^
Intuitively, .3.+(5)
seems to be a valid expression to me. Is there a bug in Ammonite or is it in the Scala REPL?