Skip to content

Commit

Permalink
Merge pull request #85 from joan38/safe-init
Browse files Browse the repository at this point in the history
Add -Ysafe-init option
  • Loading branch information
TonioGela authored Oct 31, 2023
2 parents 43ac000 + f1683ac commit fca373c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ private[scalacoptions] trait ScalacOptions {
val privateKindProjector =
privateOption("kind-projector", version => version >= V3_0_0)

/** Enables safe initialization check. More info:
* [[https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html]]
*/
val privateSafeInit =
privateOption("safe-init", version => version >= V3_0_0)

/** Enables support for higher order unification in type constructor inference.
*
* Initially provided as a compiler option in the 2.12.x series to fix the infamous
Expand Down

0 comments on commit fca373c

Please sign in to comment.