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

Incorrect type parameter ascription when extending from nonpolymorphic trait with polymorphic grandparent class #456

Closed
wiwa opened this issue Jul 23, 2019 · 1 comment · Fixed by #464
Assignees
Labels
Milestone

Comments

@wiwa
Copy link
Contributor

wiwa commented Jul 23, 2019

  class C[A]

  trait T extends C[Int]

  class D extends T
--- obtained
+++ expected
@@ -7,3 +7,3 @@-  class D extends T[Int]
+  class D extends T
 }

Basically, RscCompat will incorrectly ascribe type parameters to the extends trait. This also happens when C is abstract class but not when it's a trait.

@wiwa wiwa added the Scalasig label Jul 23, 2019
@wiwa wiwa added this to the M7 milestone Jul 23, 2019
@wiwa wiwa added Scalafix and removed Scalasig labels Jul 24, 2019
ShaneDelmore pushed a commit to ShaneDelmore/rsc that referenced this issue Jul 29, 2019
ShaneDelmore pushed a commit to ShaneDelmore/rsc that referenced this issue Jul 29, 2019
ShaneDelmore pushed a commit to ShaneDelmore/rsc that referenced this issue Jul 29, 2019
@wiwa
Copy link
Contributor Author

wiwa commented Jul 30, 2019

scalameta/scalameta#1887

ShaneDelmore pushed a commit to ShaneDelmore/rsc that referenced this issue Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants