Skip to content

Conversation

@smarter
Copy link
Member

@smarter smarter commented May 3, 2022

  • The PolyType case was dead code imported from Scala 2
  • The HKTypeLambda case was correct for eta-expanded classes
    (e.g. in t7932 Category[Tuple2] should get as signature
    Category<scala.Tuple2>), but not for other type lambdas
    where it could lead to type members appearing in the signature.
    Fixed by splitting the case into an EtaExpansion case and
    a case for all other HKTypeLambdas (which are just replaced
    by a wildcard).

Fixes #15091.

- The PolyType case was dead code imported from Scala 2
- The HKTypeLambda case was correct for eta-expanded classes
  (e.g. in t7932 `Category[Tuple2]` should get as signature
  `Category<scala.Tuple2>`), but not for other type lambdas
  where it could lead to type members appearing in the signature.
  Fixed by splitting the case into an EtaExpansion case and
  a case for all other HKTypeLambdas (which are just replaced
  by a wildcard).

Fixes scala#15091.
@smarter smarter requested a review from Kordyjan May 3, 2022 17:39
@smarter
Copy link
Member Author

smarter commented May 18, 2022

Ping for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type member appears in java generic signature (this breaks graal native and won't make javac happy either)

2 participants