Skip to content

Commit 2e3f870

Browse files
Merge pull request #173 from joan38/explicit-nulls
Add -Yexplicit-nulls compiler flag
2 parents a2a1e80 + 8b440df commit 2e3f870

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ private[scalacoptions] trait ScalacOptions {
493493
val privateRetainTrees =
494494
privateOption("retain-trees", version => version >= V3_0_0)
495495

496+
/** Enables explicit nulls that modifies the Scala type system, which makes reference types
497+
* (anything that extends AnyRef) non-nullable.
498+
*/
499+
val privateExplicitNulls =
500+
privateOption("explicit-nulls", version => version >= V3_0_0)
501+
496502
/** Enables support for higher order unification in type constructor inference.
497503
*
498504
* Initially provided as a compiler option in the 2.12.x series to fix the infamous

0 commit comments

Comments
 (0)