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

Spurious CyclicReference errors occur with shapeless Record type #10159

Closed
scabug opened this issue Jan 22, 2017 · 3 comments
Closed

Spurious CyclicReference errors occur with shapeless Record type #10159

scabug opened this issue Jan 22, 2017 · 3 comments

Comments

@scabug
Copy link

scabug commented Jan 22, 2017

See milessabin/shapeless#679.

import shapeless.record.Record
object Foo {
  type K = Record.`'a -> Int`.T
  implicit val k: List[K] = Nil
}

While trying to adapt Record to have a 'a -> Int member (before Dynamic is used), implicit search tries to type List[K], failing with a cyclic reference error since K in the process of being initialized already.

PR forthcoming.

@scabug
Copy link
Author

scabug commented Jan 22, 2017

Imported From: https://issues.scala-lang.org/browse/SI-10159?orig=1
Reporter: @allisonhb
Affected Versions: 2.12.1

@scabug
Copy link
Author

scabug commented Jan 22, 2017

@allisonhb said:
scala/scala#5656

@scabug
Copy link
Author

scabug commented Mar 8, 2017

@adriaanm said:
Wow! Excellent analysis, and quite the shocking find, allisonhb! Here's my proposed fix: scala/scala#5762

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

3 participants