Last active
December 23, 2015 13:39
-
-
Save OleTraveler/6644067 to your computer and use it in GitHub Desktop.
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 A { | |
def a: String => String | |
} | |
trait B { | |
//TypeOf is something magical | |
def b: TypeOf[A.a] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If type of A.a changes to Int => Int , then the type of B changes and the compiler will blow up wherever B.b is expecting String => String.