I understand the use for explicitly typed self-references:
trait T {
self : T2 =>
...
}
In the body, self
is an alias for this
but has the more precise type T with T2
.
Now, I've seen this in code:
trait T {
self =>
...
}
That is, an explicit self reference with no additional type information. In this configuration, is there any situation in which self
is not just an alias for this
?