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

singleton types bytecode issue #8895

Closed
scabug opened this issue Oct 9, 2014 · 4 comments
Closed

singleton types bytecode issue #8895

scabug opened this issue Oct 9, 2014 · 4 comments
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Oct 9, 2014

// Main.scala
object Test {
  def test = {
    trait K[T] { def f = A }
    case object A extends K[Int]
    List(A.toString)
  }
}
object Main extends App {
  println(Test.test)
}

java.lang.ClassFormatError: Duplicate field name&signature in class file Test$A$2$

without toString: can't existentially abstract over parameterized type K[Int]

@scabug
Copy link
Author

scabug commented Oct 9, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8895?orig=1
Reporter: Guillaume Massé (masgui)
Affected Versions: 2.11.2

@scabug
Copy link
Author

scabug commented Oct 9, 2014

@gourlaysama said:
This seems similar to #7645 (especially the 2nd comment).

@scabug
Copy link
Author

scabug commented Oct 9, 2014

@som-snytt said:
Or #5252. I just noticed that quick search on "duplicate field" doesn't yield the results I expected. That is duplicate resolution.

@scabug
Copy link
Author

scabug commented Nov 11, 2016

@SethTisue said:
went away somewhere between 2.11.2 and 2.11.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant