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

Compile failed on case class with default value and type parameter #1116

Open
liewhite opened this issue Mar 10, 2023 · 0 comments
Open

Compile failed on case class with default value and type parameter #1116

liewhite opened this issue Mar 10, 2023 · 0 comments

Comments

@liewhite
Copy link

case class Z[T](
    a: T,
    b: Long = 1
)
@main def main = {
  println(generateDocs(deriveConfig[Z[Int]]).toTable.toGithubFlavouredMarkdown)
}

Compile error:
Exception occurred while executing macro expansion.
java.lang.Exception: Expected an expression. This is a partially applied Term. Try eta-expanding the term first.

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