File tree 1 file changed +8
-4
lines changed
lib/src/main/scala/org/typelevel/scalacoptions
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -461,6 +461,12 @@ private[scalacoptions] trait ScalacOptions {
461
461
val privateKindProjector =
462
462
privateOption(" kind-projector" , version => version >= V3_0_0 )
463
463
464
+ /** Enables safe initialization check. More info:
465
+ * [[https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html ]]
466
+ */
467
+ val privateSafeInit =
468
+ privateOption(" safe-init" , version => version >= V3_0_0 )
469
+
464
470
/** Enables support for higher order unification in type constructor inference.
465
471
*
466
472
* Initially provided as a compiler option in the 2.12.x series to fix the infamous
@@ -469,10 +475,7 @@ private[scalacoptions] trait ScalacOptions {
469
475
* Enabled by default in 2.13.0+ and no longer accepted by the compiler as an option.
470
476
*/
471
477
val privatePartialUnification =
472
- privateOption(
473
- " partial-unification" ,
474
- version => version.isBetween(V2_11_11 , V2_13_0 )
475
- )
478
+ privateOption(" partial-unification" , version => version.isBetween(V2_11_11 , V2_13_0 ))
476
479
477
480
/** Configures the number of worker threads for the compiler backend.
478
481
*
@@ -647,6 +650,7 @@ private[scalacoptions] trait ScalacOptions {
647
650
val privateOptions : Set [ScalacOption ] = ListSet (
648
651
privateNoAdaptedArgs,
649
652
privateKindProjector,
653
+ privateSafeInit,
650
654
privatePartialUnification
651
655
) ++ privateWarnOptions
652
656
You can’t perform that action at this time.
0 commit comments