Created
January 9, 2013 20:42
-
-
Save anonymous/4496750 to your computer and use it in GitHub Desktop.
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 Imp[T] {} | |
object Imp { | |
implicit val i = new Imp[Int] {} | |
} | |
import Imp._ | |
trait F { | |
type T | |
def imp = implicitly[Imp[T]] | |
} | |
object Bar extends F { | |
type T = Int | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment