Skip to content

Instantly share code, notes, and snippets.

@jdegoes
Created April 10, 2014 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdegoes/10430056 to your computer and use it in GitHub Desktop.
Save jdegoes/10430056 to your computer and use it in GitHub Desktop.
Failed partial type application experiment
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