Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler hangs #10227

Open
scabug opened this issue Mar 15, 2017 · 1 comment
Open

Compiler hangs #10227

scabug opened this issue Mar 15, 2017 · 1 comment

Comments

@scabug
Copy link

scabug commented Mar 15, 2017

The following hangs the compiler:

trait Data { self =>
  type Type >: self.type
}

trait Eq[Type <: Data, A <: Type, B <: Type] { ab =>
  final def lift[F[_ <: Type] <: Data]: Eq[Type, F[A], F[B]] =
    Eq.lift[A, B, F](ab)
}

object Eq {
  def lift[A <: Data, B <: A#Type, F[_ <: A#Type] <: Data](eq: Eq[A#Type, A, B]): Eq[A#Type, F[A], F[B]] = ???
}

It should be possible to minimize it further.

@scabug
Copy link
Author

scabug commented Mar 15, 2017

Imported From: https://issues.scala-lang.org/browse/SI-10227?orig=1
Reporter: Alexander Konovalov (alexknvl)
Affected Versions: 2.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants