Aladdin - Scala Bugtracking
[#1101] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Burak noise 2007-05-11 13:03:26.0
subject false def/val at end of block reported
code
package test;
class Test {
  def f = {
    val something = 42
    {<color>red</color>} ++ scala.xml.Text("foo")
  }
}
what happened
block must end in result expression, not in definition	test13/src/test	Test.scala	line 6
what expected No error
[back to overview]
Changes of this bug report
Martin  edited on  2007-05-11 17:19:03.0
This one is noise: The open curly after the 42 is treated as a line continuation. Insert another newline after 42 and it should compile OK.