Skip to content

Fix warning. use compiletime.uninitialized#496

Merged
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:compiletime-uninitialized
Mar 2, 2026
Merged

Fix warning. use compiletime.uninitialized#496
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:compiletime-uninitialized

Conversation

@xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Mar 1, 2026

[warn] -- Warning: /home/runner/work/io/io/io/src/main/scala/sbt/internal/io/DeferredWriter.scala:19:34 
[warn] 19 |  private var delegate0: Writer = _
[warn]    |                                  ^
[warn]    |`= _` has been deprecated; use `= uninitialized` instead.
[warn]    |`uninitialized` can be imported with `scala.compiletime.uninitialized`.
[warn]    |This construct can be rewritten automatically under -rewrite -source 3.4-migration.

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

@eed3si9n eed3si9n merged commit 82914a8 into sbt:develop Mar 2, 2026
6 checks passed
@xuwei-k xuwei-k deleted the compiletime-uninitialized branch March 2, 2026 04:41
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