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
ClassFormatError with local definitions #5252
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5252?orig=1 |
@lrytz said: |
@retronym said: object Test {
{
val out = 0
trait Trait {
def foo {
out
}
}
class C extends Trait {
def copy { new C }
}
new C
}
def main(args: Array[String]) {
}
} |
@retronym said: |
@magarciaEPFL said:
The Mixin phase lumps both fields in class
That's why
|
@lrytz said:
|
Just want to chime in that I am getting the "duplicate field name&signature" issue in Scala 2.12.x with code that has worked flawlessly for a long time in Scala 2.11.x. Things seems to be worse in 2.12 than they were in 2.11. |
#8984 has an additional reproduction |
The following produces a bad classfile, both with 2.9.1 and latest nightly.
Error is:
java.lang.ClassFormatError: Duplicate field name&signature in class file test$C$2
The text was updated successfully, but these errors were encountered: