Skip to content

Backport #15498: Fix #15494: Handle non-specialized functions in EtaReduce. #15501

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
Jun 22, 2022

Conversation

Kordyjan
Copy link
Contributor

Backports #15498

In Scala.js, function specialization is disabled. This means that
non-specialized functions can reach `EtaReduce`. Previously, it
did not handle the shape of right-hand-side for non-specialized
functions returning primitives. We fix the issue by handling those,
like we already handled `.asInstanceOf`s.
@Kordyjan Kordyjan added this to the 3.2.0 backports milestone Jun 22, 2022
@Kordyjan Kordyjan requested a review from sjrd June 22, 2022 13:41
@sjrd sjrd enabled auto-merge June 22, 2022 13:54
@sjrd sjrd merged commit 8e63cb4 into scala:release-3.2.0 Jun 22, 2022
@sjrd sjrd deleted the backport-15498 branch June 22, 2022 15:04
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