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

Limit when companion extends FunctionN #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mrdziuban
Copy link

This allows the annotation plugin to be used for classes with multiple parameter groups or with implicit parameters. Scala doesn't extend FunctionN in these cases resulting in an error like this:

@deriving(Foo) case class Multi(str: string)(val int: Int)
// [error] object creation impossible, since method apply in trait Function1 of type (v1: String)

This also adds the option to pretty print the AST when debugging, which I found useful, but I'm also happy to back out that change if others don't find it useful.

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

Successfully merging this pull request may close these issues.

2 participants