Skip to content

Commit fca373c

Browse files
authored
Merge pull request #85 from joan38/safe-init
Add -Ysafe-init option
2 parents 43ac000 + f1683ac commit fca373c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala

+6
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,12 @@ private[scalacoptions] trait ScalacOptions {
461461
val privateKindProjector =
462462
privateOption("kind-projector", version => version >= V3_0_0)
463463

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+
464470
/** Enables support for higher order unification in type constructor inference.
465471
*
466472
* Initially provided as a compiler option in the 2.12.x series to fix the infamous

0 commit comments

Comments
 (0)