Skip to content

Scala 3.3.x Lazy Vals regression with AnyVal value ( scala.MatchError: scala.runtime.LazyVals$Evaluating ) #16806

Closed
@soronpo

Description

@soronpo

I decided to report this before I find the time to minimize, because this is a severe issue for anyone using AnyVal values.
They should avoid upgrading to 3.3.x until this is found and resolved.

Compiler version

v3.3.0-RC2

Minimized code

I still don't have a minimized error and the errors are occurring randomly, so it makes it very problematic to minimize.
In general where it fails is that it tries to match against the underlying value of the AnyVal, and it gets a MatchError.

TBD

Output

 scala.MatchError: scala.MatchError: scala.runtime.LazyVals$Evaluating$@6ce08dec (of class scala.runtime.LazyVals$Evaluating$) (of class scala.MatchError)

Expectation

No error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions