2

In a Scala worksheet I can do this:

object Play {

 println("Playing a bit")                         //> Playing a bit

 case class X(a: Int = 1, x: List[X]){
 }

}

but I can't do this:

object Play {

 case class X(a: Int = 1, x: List[X]){
 }

}

In the latter it will complain after the case class that ; was expected but import found

Luigi Plinge
  • 50,650
  • 20
  • 113
  • 180
Jack
  • 16,506
  • 19
  • 100
  • 167

1 Answers1

1

This seems to be a bug that is fixed in the latest nightly build of Scala IDE. See https://stackoverflow.com/a/12767214/770361

Community
  • 1
  • 1
Luigi Plinge
  • 50,650
  • 20
  • 113
  • 180