Top "Self-type" questions

A self-type is a generic type referencing the current class

What is the difference between self-types and trait subclasses?

A self-type for a trait A: trait B trait A { this: B => } says that "A cannot be mixed into …

scala traits self-type
How to use Scala's this typing, abstract types, etc. to implement a Self type?

I couldn't find the answer to this in any other question. Suppose that I have an abstract superclass Abstract0 with …

scala self-type abstract-type
Scala: illegal inheritance; self-type Y does not conform to X's selftype SELF

I have a trait, which takes a type parameter, and I want to say that the objects that implements this …

scala self-type
Difference between trait inheritance and self type annotation

In Scala, I've seen the constructs trait T extends S and trait T { this: S => used to achieve similar …

scala composition traits self-type
Scala: implementing method with return type of concrete instance

I need a way to enforce a method in an abstract class to have a return type of the concrete …

scala abstract-type self-type