Created
January 31, 2016 06:16
-
-
Save erangaeb/2e2ba1ebdb8f9a7bbbba to your computer and use it in GitHub Desktop.
Self typed annotation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Lambda { | |
| val l = "Lambda" | |
| } | |
| trait Calculus { | |
| this: Lambda => | |
| val c = "Calculus" | |
| val lc = l + c | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@erangaeb
In your article you should replace
val universe = new Calculus with Lambdabyval universe = new Lambda with Calculusto get the expected result.