Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Created January 31, 2016 06:16
Show Gist options
  • Save erangaeb/2e2ba1ebdb8f9a7bbbba to your computer and use it in GitHub Desktop.
Save erangaeb/2e2ba1ebdb8f9a7bbbba to your computer and use it in GitHub Desktop.
Self typed annotation
trait Lambda {
val l = "Lambda"
}
trait Calculus {
this: Lambda =>
val c = "Calculus"
val lc = l + c
}
@brunierterry
Copy link

@erangaeb
In your article you should replace val universe = new Calculus with Lambda by val universe = new Lambda with Calculus to get the expected result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment