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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

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

@scabug scabug added the quickfix label Apr 7, 2017

@adriaanm adriaanm removed the quickfix label Apr 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.