We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This code compiles, but fails at runtime, as long as the numbers of type parameters of the two a methods differ.
a
trait P[A]{ def a[T]: A } class C extends P[Int]{ def a = 1 } object O{ def main(args: Array[String]) = { val p: P[Int] = new C println(p.a) } }
Output:
Exception in thread "main" java.lang.AbstractMethodError: C.a()Ljava/lang/Object; at O$.main(AME.scala:10) at O.main(AME.scala)
The text was updated successfully, but these errors were encountered:
Fix scala#5578: Refine matches condition
7560c17
`matches` incorrectly returned a match if two members differed only in their type parameters.
668a637
Merge pull request #5622 from dotty-staging/fix-#5578
bc5e0d2
Fix #5578: Refine matches condition
No branches or pull requests
This code compiles, but fails at runtime, as long as the numbers of type parameters of the two
a
methods differ.Output:
The text was updated successfully, but these errors were encountered: