bug
bug copied to clipboard
Cannot annotate constructor with @varargs
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".
Imported From: https://issues.scala-lang.org/browse/SI-8383?orig=1 Reporter: Eric Pederson (ericacm) Affected Versions: 2.10.3
@adriaanm said: I think this simply wasn't implemented. Original issue: #3621 Alex, do you remember perhaps?
@axel22 said: Yes, this was not implemented deliberately. There was some problem with duplicating constructor methods, IIRC.
Perhaps it's worth taking another look.
Eric Pederson (ericacm) said: That would be great. It would enable some nicer APIs that I currently have to resort to using Java for.
@adriaanm said: We'll be glad to support contributions, but otherwise this is not on our 2.12 roadmap (to be published soon).