We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given classfiles built from these should-be-equivalent scala and java sources:
// scala package s class Foo[A] { abstract class Bar extends java.util.Iterator[A] abstract class SubBar extends Bar } // java package j; public class JFoo<A> { public abstract class Bar implements java.util.Iterator<A> { } public abstract class SubBar extends Bar { } }
...we are given a malformed prefix for java's SubBar, and a correct one for scala's.
scala> (typeOf[s.Foo[_]] member TypeName("SubBar")).info.parents res1: List[$r.intp.global.Type] = List(Foo.this.Bar) scala> (typeOf[j.JFoo[_]] member TypeName("SubBar")).info.parents res2: List[$r.intp.global.Type] = List(j.JFoo[A]#Bar)
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7538?orig=1 Reporter: @paulp Attachments:
Sorry, something went wrong.
@paulp said: Attached my patch in case it will save someone else some time.
still reproducible in Scala 2? fixed in Scala 3? (anyone feel like checking?)
I can reproduce it with $SubBar in Scala 2.13 - not sure how you would check in Scala 3
$SubBar
No branches or pull requests
Given classfiles built from these should-be-equivalent scala and java sources:
...we are given a malformed prefix for java's SubBar, and a correct one for scala's.
The text was updated successfully, but these errors were encountered: