在Scala工作表中,我可以这样做:
object Play {
println("Playing a bit") //> Playing a bit
case class X(a: Int = 1, x: List[X]){
}
}
但我不能这样做:
object Play {
case class X(a: Int = 1, x: List[X]){
}
}
在后者中,它会在案例类; was expected but import found