Skip to content

Scala.js IR error with a case class with java.lang.Class field: java.io.Serializable expected but java.lang.Class found for tree of type org.scalajs.ir.Trees$Apply #17542

@neko-kai

Description

@neko-kai

Compiler version

3.2.2 and 3.3.1-RC1-bin-20230331-7262437-NIGHTLY

Minimized code

Can't minimize so far. To reproduce execute:

git clone https://github.com/7mind/izumi.git
cd izumi
git checkout 124644fde1dea510750a71f13c47f06c657bdcf4
sbt distage-extension-logstageJS/Test/fullLinkJS

Error:

[error] file:SafeType.scala(7:18:Return): java.io.Serializable expected but java.lang.Class found for tree of type org.scalajs.ir.Trees$Apply
[error] There were 1 IR checking errors.

Expectation

Expected to work, as on Scala 2. Only happens with fullLinkJS, not with fastOptJS.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions