Skip to content

Fix #6891: Assertion failed when naming parameter in polymorphic function type #6917

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 1 commit into from
Jul 23, 2019

Conversation

anatoliykmetyuk
Copy link
Contributor

The reason behind the failure was an incorrect desugaring of
polymorphic functions. [A] => A => A desugars to, essentially,
def apply[A](x$1: A): A. Whereas [A] => (f: A) => A desugars
to def apply[A](x$1: f: A): A, which of course does not make
sense.

… function type

The reason behind the failure was an incorrect desugaring of
polymorphic functions. `[A] => A => A` desugars to, essentially,
`def apply[A](x$1: A): A`. Whereas `[A] => (f: A) => A` desugars
to `def apply[A](x$1: f: A): A`, which of course does not make
sense.
@anatoliykmetyuk anatoliykmetyuk merged commit 278f7f4 into scala:master Jul 23, 2019
@anatoliykmetyuk anatoliykmetyuk deleted the i6891 branch July 23, 2019 17:02
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