Skip to content

Commit 69cca3d

Browse files
LinyxusWojciechMazur
authored andcommitted
Make WcheckInit public
This is needed to make ScalaSettingsTests.scala compile [Cherry-picked 81f2c8e]
1 parent 777310f commit 69cca3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private sealed trait WarningSettings:
300300
def typeParameterShadow(using Context) =
301301
allOr("type-parameter-shadow")
302302

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

305305
object Whas:
306306
def allOr(s: Setting[Boolean])(using Context): Boolean =

0 commit comments

Comments
 (0)