The currying example looks wrong.
It is
def curriedAdd(x: Int)(y: Int) = x + x
...
add(3)(5)
but should be
def curriedAdd(x: Int)(y: Int) = x + y
...
curriedAdd(3)(5)
Page 34 (PDF page 53):
In Listing 3.1 Extending HttpServlet from Scala there is an extra dot in
the line that is calling the superclass init() method.
The line super.init.() should be super.init()
Page 39 (PDF page 58):
The currying example looks wrong.
It is
def curriedAdd(x: Int)(y: Int) = x + x
but should be
def curriedAdd(x: Int)(y: Int) = x + y