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

Comments

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Author

scabug commented Jan 22, 2017

@allisonhb said:
scala/scala#5656

@scabug

This comment has been minimized.

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

@scabug scabug added this to the 2.12.2 milestone Apr 7, 2017

@adriaanm adriaanm modified the milestones: 2.12.3, 2.12.2 Apr 8, 2017

@retronym retronym modified the milestones: 2.12.3, 2.12.4 Jul 8, 2017

@retronym retronym closed this Sep 19, 2017

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