Skip to content

LogPendingSubTypesThreshold influences subtyping #5666

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

Closed
OlivierBlanvillain opened this issue Dec 31, 2018 · 0 comments
Closed

LogPendingSubTypesThreshold influences subtyping #5666

OlivierBlanvillain opened this issue Dec 31, 2018 · 0 comments

Comments

@OlivierBlanvillain
Copy link
Contributor

The following example stop compiling when changing LogPendingSubTypesThreshold in Config.scala from 50 to 9:

sealed trait HList
trait HNil extends HList
trait HCons[+H, +T] extends HList

trait Concat[L1, L2] { type Out }
object Concat {
  implicit def i0[L]:
    Concat[HNil, L] { type Out = L } = null

  implicit def i1[H, T, L, O]
    (implicit c: Concat[T, L] { type Out = O }):
      Concat[HCons[H, T], L] { type Out = HCons[H, O] } = null
}

object Test {
  type L1 = HCons[Unit, HNil]

  implicitly[Concat[L1, L1]]
}

The simplest way to reproduce the issue it to change the settings inline, in TypeComparer.scala, as changes in Config.scala requires a full sbt clean to be picked up by zinc.

OlivierBlanvillain added a commit that referenced this issue Jan 14, 2019
Fix #5666: Fix normalizing map when testing for seen pairs
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

1 participant