Play...">

Why does a Scala table using Scala -IDE give this as an error?

In the Scala sheet, 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 not do this:

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

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

+2
source share
1 answer

This seems to be a bug that has been fixed in the latest Scala IDE nightly build. See fooobar.com/questions/1437901 / ...

+1
source

Source: https://habr.com/ru/post/1442495/


All Articles