Open voropaevp opened 3 years ago
This remains an issue. You can get the compiler output from the book if you run the example code from the chapter with no newline between this case class definition and the immediately following expression:
final case class Cat(name: String, born: Int, color: String)
(
Option("Garfield"),
Option(1978),
Option("Orange & black")
)
This remains an issue. You can get the compiler output from the book if you run the example code from the chapter with no newline between this case class definition and the immediately following expression:
final case class Cat(name: String, born: Int, color: String) ( Option("Garfield"), Option(1978), Option("Orange & black") )
Nevertheless i think the compiler output in the book should be fixed
In chapter 6.2 Apply Syntax
Book version:
Correct version: