Skip to content

Fix #6159: Fix opaque alias #6167

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

Merged
merged 2 commits into from
Apr 2, 2019
Merged

Fix #6159: Fix opaque alias #6167

merged 2 commits into from
Apr 2, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 25, 2019

No description provided.

@odersky
Copy link
Contributor Author

odersky commented Apr 1, 2019

@OlivierBlanvillain ping for review

Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added test case doesn't fail on master (method arguments are just erased differently), so you might want to also include the overloading one:

object O{
  opaque type T[X] = X

  def m(a: T[Int]) = 1
  def m(a: T[String]) = 2
}

@odersky odersky merged commit 3b5f552 into scala:master Apr 2, 2019
@allanrenucci allanrenucci deleted the fix-#6159 branch April 2, 2019 09:03
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.

2 participants