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

Derivation for class with collection field #370

Open
kubinio123 opened this issue Jan 18, 2022 · 2 comments
Open

Derivation for class with collection field #370

kubinio123 opened this issue Jan 18, 2022 · 2 comments
Labels

Comments

@kubinio123
Copy link
Contributor

Trying to derive Show instance from test sources for a case class with List field ends up in compilation error.

In tests.scala

case class Attributes(a: String)
case class Entry(attributes: Attributes)
case class Response(entries: List[Entry])
test("construct a Show product instance") {
  val res = Show.derived[Response]
}

outputs:

[error] java.lang.AssertionError: assertion failed: <notype> class dotty.tools.dotc.ast.Trees$TypeTree -1
@joroKr21
Copy link
Contributor

Oh no - that sounds like scala/scala3#13406 - unfortunately I don't think anyone is working on it.

@adamw
Copy link
Member

adamw commented Jan 18, 2022

@joroKr21 Thanks for linking the issues - I've voted on it, if it makes any difference :)

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

No branches or pull requests

3 participants