Created
February 21, 2014 01:12
-
-
Save puffnfresh/9126936 to your computer and use it in GitHub Desktop.
Can't make ambiguous
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 Wat[T] | |
object Wat { | |
implicit object BooleanWat extends Wat[Boolean] | |
} | |
object Hello { | |
implicit object AmbBooleanWat1 extends Wat[Boolean] | |
implicit object AmbBooleanWat2 extends Wat[Boolean] | |
def main(args: Array[String]) { | |
implicitly[Wat[Boolean]] // finds BooleanWat | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pedrofurla back to being ambiguous in 2.11.0-M8.
🐐