I am new to scala and getting below exception while using :paste command in REPL
scala> :paste
// Entering paste mode (ctrl-D to finish)
1+2
println("welcome to scala world")
// Exiting paste mode, now interpreting.
<console>:11: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses
1+2
^
welcome to scala world
scala> scala version : Scala code runner version 2.12.3 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc
invalidFunctionFwithsquare, the exception disappears, but the pure expression warning persists... - Alonso del Arte