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

exponential compilation time #8801

Closed
scabug opened this issue Aug 18, 2014 · 2 comments
Closed

exponential compilation time #8801

scabug opened this issue Aug 18, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 18, 2014

Compilation time into the stratosphere by the time there are nine.

Aug 18 10:38:51 [log typer] Needs cycle check: type _5 in object Nat
Aug 18 10:38:51 [log typer] Needs cycle check: type _6 in object Nat
Aug 18 10:38:52 [log typer] Needs cycle check: type _7 in object Nat
Aug 18 10:38:54 [log typer] Needs cycle check: type _8 in object Nat
Aug 18 10:39:18 [log typer] Needs cycle check: type _9 in object Nat
sealed trait Nat {
  type Prev <: Nat { type Succ = Nat.this.type }
  type Succ <: Nat { type Prev = Nat.this.type }
}

object Nat {
  object Zero extends Nat {
    type Prev = Nothing
  }

  type _0 = Zero.type
  type _1 = _0#Succ
  type _2 = _1#Succ
  type _3 = _2#Succ
  type _4 = _3#Succ
  type _5 = _4#Succ
  type _6 = _5#Succ
  type _7 = _6#Succ
  type _8 = _7#Succ
  type _9 = _8#Succ
}
@scabug
Copy link
Author

scabug commented Aug 18, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8801?orig=1
Reporter: @paulp
Affected Versions: 2.9.3, 2.10.4, 2.11.5
See #9157

@scabug
Copy link
Author

scabug commented Feb 19, 2015

@retronym said:
scala/scala#4347

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

No branches or pull requests

2 participants