-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
object App {
def main(args: Array[String]): Unit = {
trait ModuleSig {
type F[_]
type Type = F
def subst[F[_[_]]](fa: F[List]): F[Type]
}
val Module: ModuleSig = new ModuleSig {
type F[A] = List[A]
def subst[F[_[_]]](fa: F[List]): F[Type] = fa
}
}
}
doesn't compile, but if you change
type F[A] = List[A]
to
type F = List
it does...
Metadata
Metadata
Assignees
Labels
No labels