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

Attempt to beta reduce only if parameters and arguments have same shape #21970

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 18, 2024

It's possible to define Functions with wrong apply methods by hand which will give an error but pass on a function that does fails beta reduction.

Fixes #21952

… shape

It's possible to define Functions with wrong apply methods by hand which will
give an error but pass on a function that does fails beta reduction.

Fixes scala#21952
@odersky odersky requested a review from jchyb November 18, 2024 16:55
@odersky odersky merged commit 73168ee into scala:main Nov 19, 2024
29 checks passed
@odersky odersky deleted the fix-21953 branch November 19, 2024 13:35
@WojciechMazur WojciechMazur added this to the 3.6.3 milestone Nov 25, 2024
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.

Evaluation of invalid Function crashes Scala
3 participants