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

Cannot annotate constructor with @varargs #8383

Open
scabug opened this issue Mar 9, 2014 · 5 comments
Open

Cannot annotate constructor with @varargs #8383

scabug opened this issue Mar 9, 2014 · 5 comments

Comments

@scabug
Copy link

scabug commented Mar 9, 2014

You can have varargs constructors in both Scala and Java, but you can't annotate a varargs constructor in Scala with @VarArgs - you get an error message "A constructor cannot be annotated with a @varargs annotation".

@scabug
Copy link
Author

scabug commented Mar 9, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8383?orig=1
Reporter: Eric Pederson (ericacm)
Affected Versions: 2.10.3

@scabug
Copy link
Author

scabug commented Mar 10, 2014

@adriaanm said:
I think this simply wasn't implemented. Original issue: #3621
Alex, do you remember perhaps?

@scabug
Copy link
Author

scabug commented Mar 11, 2014

@axel22 said:
Yes, this was not implemented deliberately. There was some problem with duplicating constructor methods, IIRC.

Perhaps it's worth taking another look.

@scabug
Copy link
Author

scabug commented Mar 11, 2014

Eric Pederson (ericacm) said:
That would be great. It would enable some nicer APIs that I currently have to resort to using Java for.

@scabug
Copy link
Author

scabug commented Mar 19, 2014

@adriaanm said:
We'll be glad to support contributions, but otherwise this is not on our 2.12 roadmap (to be published soon).

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