Aladdin - Scala Bugtracking
[#610] project: nsc priority: low category: bug
submitter assigned to status date submitted
Nikolay Burak fixed 2006-05-19 11:25:31.0
subject [contrib #136] XML literals do not end statements
code
object Test
{
        val x = <xml>Some XML</xml>

        def main(argv : Array[String]) : Unit = {
        }
}
what happened
test.scala:5 error: ';' expected but 'def' found.
        def main(argv : Array[String]) : Unit = {
        ^
one error found
what expected The spec. states that literals can end statements. Presumably this ought to include XML literals.
[back to overview]
Changes of this bug report
Martin  edited on  2006-05-21 16:02:39.0
Burak  edited on  2006-05-23 09:43:26.0
fixed by hack.