-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Overriding an @varargs
method fails under separate compilation
#9463
Comments
varags
annotated method fails in the presence of other unrelated mixins@varargs
method fails under separate compilation
Thanks for the report, I've updated the issue with a simplified example. |
The problem is that in override def counter(name: Array[_ <: String]): Int = counter(name: _*) But the compiler later fails thinking that this isn't actually overriding anything because under separate compilation we only run the denotation transformer for definitions coming from the classpath, so we don't see the forwarder generated for the original I can think of two ways of fixing this: in |
Yes! I'll have a look. |
Okay, so I've tried both. Creating the symbol in |
Fix #9463: create varargs forwarder symbols in transform instead of transformDefDef
Minimized code
A.scala
B.scala
:Output
Separate compilation of B.scala fails:
Expectation
Compiles successfully.
The text was updated successfully, but these errors were encountered: