Skip to content

Fix #10681: Reject applied HK types in term positions #10774

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

Closed
wants to merge 1 commit into from

Conversation

agluszak
Copy link

typedFunPart in Applications.scala should only adapt E to new E when we're applying E to some term parameters.

Fixes #10681.
Also fixes #10679.

Thanks @liufengyun and @smarter for help :)

@smarter
Copy link
Member

smarter commented Dec 21, 2020

I think this change makes a lot of sense by itself, but while this PR was open #10784 was merged which completely changed the way creator application is implemented to be based on synthetic apply methods instead of a fallback in typer (to avoid accidentally falling back in case of ambiguity errors for example), so this PR isn't necessary anymore, but thank you for taking the time to work on it and we may come back to it if #10784 ends up being reverted!

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.

Can use Applied HK type in term position Curried type parameters application crash
2 participants