What The Hell Scala?
| case class Cont[F[+_], +A] extends Free[F, A] | |
| sealed trait Free[F[+_], +A] | |
| case class FreeM[I, +A](free: Free[({type f[+x] = Map[I, x]})#f, A]) { | |
| def run = { | |
| free match { | |
| case Cont() => | |
| error("") | |
| } | |
| } | |
| } | |
| /* | |
| $ scalac X.scala | |
| WTH.scala:7: error: constructor cannot be instantiated to expected type; | |
| found : Cont[F,A(in class Cont)] | |
| required: Free[[+x]scala.collection.immutable.Map[I,x],A(in class FreeM)] | |
| case Cont(e) => | |
| ^ | |
| one error found | |
| */ |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.