Skip to content

Commit

Permalink
Make WcheckInit public
Browse files Browse the repository at this point in the history
This is needed to make ScalaSettingsTests.scala compile
  • Loading branch information
Linyxus committed Jul 1, 2024
1 parent d9e5fd4 commit 81f2c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private sealed trait WarningSettings:
def typeParameterShadow(using Context) =
allOr("type-parameter-shadow")

private val WcheckInit: Setting[Boolean] = BooleanSetting(WarningSetting, "Wsafe-init", "Ensure safe initialization of objects.")
val WcheckInit: Setting[Boolean] = BooleanSetting(WarningSetting, "Wsafe-init", "Ensure safe initialization of objects.")

object Whas:
def allOr(s: Setting[Boolean])(using Context): Boolean =
Expand Down

0 comments on commit 81f2c8e

Please sign in to comment.