Skip to content

Fix errors when using upcoming scala 3.5.0 #3

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jchyb
Copy link

@jchyb jchyb commented Jun 24, 2024

This was picked up on scala 3's open-community-build: scala/scala3#20292

Previously, a bug in the compiler could remove some parts of the code before an inline match. In this project, this prevented the exception inline val with null is not supported from appearing, since this check is done later in the compilation pipeline. Since that is fixed in 3.5.0, the exception can appear now.

Unfortunately, currently I do not have any better solution for this. case res => res (for now) only works in scala 3.4.0 and later, but it should be possible in the future.

Previously, a bug in the compiler could remove some parts of the code
before an inline match. In this project, this prevented the exception
`inline val with null is not supported` from appearing, since this check
is done later in the compilation pipeline. Since that is fixed in 3.5.0,
the exception can appear now.

Unfortunately, currently I do not have a better solution for this.
`case res => res` (for now) only works in scala 3.4.0 and later.
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.

1 participant