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

Always generate a partial function from a lambda #12670

Merged
merged 3 commits into from
Jun 3, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 1, 2021

scalac no longer complains, neither should dotc. I verified that
the output of i4241.scala is the same for both scalac and dotc.

Fixes #12661

odersky added 3 commits June 1, 2021 14:05
`scalac` no longer complains, neither should `dotc`. I verified that
the output of `i4241.scala` is the same for both `scalac` and `dotc`.

Fixes scala#12661
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@liufengyun liufengyun merged commit aa5ed33 into scala:master Jun 3, 2021
@liufengyun liufengyun deleted the fix-12661 branch June 3, 2021 11:15
@Kordyjan Kordyjan added this to the 3.0.2 milestone Aug 2, 2023
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.

Scala 3 does not synthesize PartialFunction from function literal
3 participants