Forked from michaelpj/scala2.10.1-RC1broken.scala
Last active
December 14, 2015 04:19
-
-
Save jedws/5027251 to your computer and use it in GitHub Desktop.
https://issues.scala-lang.org/browse/SI-7180 now merged into Scala 2.10.1 https://github.com/scala/scala/pull/2166/files
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 Higher[F[_]] | |
trait Box[A] | |
object Box { | |
implicit def HigherBox = new Higher[Box] {} | |
} | |
object Foo { | |
val box = implicitly[Higher[Box]] // compiles fine !!! | |
type Bar[A] = Box[A] | |
val bar = implicitly[Higher[Bar]] // <-- this doesn't compile in 2.10.1-RC1, but does in 2.10.0 !!! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment