1 2 3 4 5 6 7 8
class A { Self => val ok = "ok" this match { case me@Self => println(me.ok) } } object Test extends A with App