Created
April 29, 2016 18:08
-
-
Save smarter/2982126fd17b9b58b820f3b50751a8e5 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
object Test { | |
def foo[M[_]](x: M[Int]) = x | |
type Alias[A] = (A, A) | |
val x: Alias[Int] = (1, 2) | |
foo(x) // Infer M=Alias | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment