Skip to content

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