We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4e98b commit d53fe3fCopy full SHA for d53fe3f
_tour/self-types.md
@@ -24,12 +24,12 @@ trait User {
24
}
25
26
trait Tweeter {
27
- this: User => // reassign this
28
- def tweet(tweetText: String) = println(s"$username: $tweetText")
+ this: User => // reassign this
+ def tweet(tweetText: String) = println(s"$username: $tweetText")
29
30
31
class VerifiedTweeter(val username_ : String) extends Tweeter with User { // We mixin User because Tweeter required it
32
- def username = s"real $username_"
+ def username = s"real $username_"
33
34
35
val realBeyoncé = new VerifiedTweeter("Beyoncé")
0 commit comments