Skip to content

Conversation

@SolalPirelli
Copy link
Contributor

@SolalPirelli SolalPirelli commented Jan 13, 2026

Tried porting the interesting stuff from scala2 as end-to-end tests that assert equivalence or high-level properties, rather than depending on specific bytecode shapes.

Part of #22667
Contributes to #3126

@@ -1,17 +1,15 @@
package dotty.tools.backend.jvm
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re: the icon.png deletion above, every time I open the project IntelliJ wants to do this, so...


val fun = getMethod(clsNode, "test")
val instructions = instructionsFromMethod(fun)
val expected = // TODO room for constant folding
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked, this TODO was done (the code below was modified but this todo was kept)


object Warmup {
def filter[A](p: Any => Boolean): Any = filter[Any](p)
def filter[A](p: Any => Boolean): Int = 1 + filter[Any](p)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one was modified in the scala2 repo at some point

@SolalPirelli SolalPirelli marked this pull request as ready for review January 13, 2026 15:05
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.

4 participants