标签: scala scala-ide
在Eclipse Scala表中我收到错误:
(-1 until 5).foreach {i => println(i)}
错误是:
Type ';' expected but ')' found illegal start of simple expression
但如果我删除"。"在(-1到5)之后我没有得到任何错误:
(-1 until 5) foreach {i => println(i)}
为什么会这样?