Skip to content

Fix eta-expansion warnings#489

Merged
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:eta-expansion
Feb 27, 2026
Merged

Fix eta-expansion warnings#489
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:eta-expansion

Conversation

@xuwei-k
Copy link
Copy Markdown
Member

@xuwei-k xuwei-k commented Feb 27, 2026

https://docs.scala-lang.org/scala3/book/fun-eta-expansion.html

[warn] -- Warning: /home/runner/work/io/io/io/src/test/scala/sbt/io/FileUtilitiesSpecification.scala:21:61 
[warn] 21 |  property("Round trip string") = forAll(writeAndCheckString _)
[warn]    |                                         ^^^^^^^^^^^^^^^^^^^^^
[warn]    |The syntax `<function> _` is no longer supported;
[warn]    |you can simply leave out the trailing ` _`
[warn]    |This construct can be rewritten automatically under -rewrite -source 3.4-migration.
[warn] -- Warning: /home/runner/work/io/io/io/src/test/scala/sbt/io/FileUtilitiesSpecification.scala:22:59 
[warn] 22 |  property("Round trip bytes") = forAll(writeAndCheckBytes _)
[warn]    |                                        ^^^^^^^^^^^^^^^^^^^^
[warn]    |The syntax `<function> _` is no longer supported;
[warn]    |you can simply leave out the trailing ` _`
[warn]    |This construct can be rewritten automatically under -rewrite -source 3.4-migration.

@eed3si9n eed3si9n merged commit 68153f3 into sbt:develop Feb 27, 2026
10 of 11 checks passed
@xuwei-k xuwei-k deleted the eta-expansion branch February 27, 2026 04:32
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.

2 participants