Created
April 10, 2014 22:51
-
-
Save jdegoes/10430056 to your computer and use it in GitHub Desktop.
Failed partial type application experiment
This file contains 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 T[A, B] | |
object T { | |
def apply[A]: TA[A] = new TA[A] {} | |
trait TA[A] { | |
type Type[B] = T[A, B] | |
def apply[B]: TAB[B] = new TAB[B] {} | |
trait TAB[B] { | |
type Type = T[A, B] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment