使用scala解释器时,如果中途发现命令输入错误,想退出,可以输入两个“回车”退出当前命令:

scala> val multiline =
 |
 |
You typed two blank lines.  Starting a new command.