mini-refined icon indicating copy to clipboard operation
mini-refined copied to clipboard

Fix errors when using upcoming scala 3.5.0

Open jchyb opened this issue 1 year ago • 0 comments

This was picked up on scala 3's open-community-build: https://github.com/scala/scala3/issues/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.

jchyb avatar Jun 24 '24 11:06 jchyb