Aladdin - Scala Bugtracking
[#893] project: documentation priority: low category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2007-01-16 16:30:40.0
subject [contrib #298] Missing case when newline is treated
code
object A{}

class B{
  type T = B.type
  def foo = {}
}

what happened
Compiled successfully
what expected According to Scala Language specification keyword "type" is not included into tokens that can terminate a statement such as "this", "true" etc. But in this case there must be a ";" after type definition in my example. But in fact it doesn't obligatory.
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-01-16 16:31:11.0
contribution #298
Martin  edited on  2007-01-23 17:39:33.0