533062 (2) [Avatar] Offline
#1
I am really keen to read this book and try out its example as well. But while running 6.2 listening example, getting compile time error as below:

scala> class Outer {
| trait Inner
| def y = new Inner {}
| def foo(x: this.Outer) = null
| def bar(x: X#Inner) = null
| }
<console>:14: error: type Outer is not a member of Outer
def foo(x: this.Outer) = null
^em
<console>:15: error: not found: type X
def bar(x: X#Inner) = null


This really disappointed me, I am using scala 2.12 version, is it the problem?