Aladdin - Scala Bugtracking
[#604] project: specification priority: low category: missing feature
submitter assigned to status date submitted
Nikolay Martin fixed 2006-05-18 17:42:26.0
subject [contrib #135] The 'type' keyword does not end a statement
code
object Test
{
        type T = Foo.type
        object Foo

        def main(argv : Array[String]) : Unit = {
        }
}
what happened
test.scala:3 error: ';' expected but 'object' found.
        type T = Foo.type
                         ^
one error found
what expected Since it seems rather unlikely that one would add a newline after 'type' in its prefix form (and no more likely than, e.g. 'return'), 'type' should be added to the set of keywords that can end a statement.
[back to overview]
Changes of this bug report
Nikolay  edited on  2006-05-18 17:43:11.0
Martin  edited on  2006-05-19 16:02:42.0