File tree 2 files changed +7
-2
lines changed
lib/src/main/scala/org/typelevel/scalacoptions
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ object ScalaVersion {
45
45
val V3_3_1 = ScalaVersion (3 , 3 , 1 )
46
46
val V3_3_3 = ScalaVersion (3 , 3 , 3 )
47
47
val V3_4_0 = ScalaVersion (3 , 4 , 0 )
48
+ val V3_5_0 = ScalaVersion (3 , 5 , 0 )
48
49
49
50
private val versionRegex = raw """ (\d+)\.(\d+)\.(\d+)(?:-.*)? """ .r
50
51
def fromString (version : String ): Either [IllegalArgumentException , ScalaVersion ] =
Original file line number Diff line number Diff line change @@ -440,7 +440,8 @@ private[scalacoptions] trait ScalacOptions {
440
440
/** Advanced options (-X)
441
441
*/
442
442
val advancedOptions : Set [ScalacOption ] = ListSet (
443
- lint
443
+ lint,
444
+ advancedKindProjector
444
445
) ++ lintOptions
445
446
446
447
/** Private options (-Y)
@@ -468,7 +469,10 @@ private[scalacoptions] trait ScalacOptions {
468
469
* syntax.
469
470
*/
470
471
val privateKindProjector =
471
- privateOption(" kind-projector" , version => version >= V3_0_0 )
472
+ privateOption(" kind-projector" , version => version.isBetween(V3_0_0 , V3_5_0 ))
473
+
474
+ val advancedKindProjector =
475
+ advancedOption(" kind-projector" , version => version >= V3_5_0 )
472
476
473
477
/** Enables safe initialization check. More info:
474
478
* [[https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html ]]
You can’t perform that action at this time.
0 commit comments