-
-
Save stephenjudkins/4496805 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 Imp[T] {} | |
object Imp { | |
implicit val i = new Imp[Int] {} | |
} | |
import Imp._ | |
trait F { | |
type T | |
implicit def imp:Imp[T] | |
} | |
class Bar(implicit val imp:Imp[Int]) extends F { | |
type T = Int | |
} | |
val Bar = new Bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment