Skip to content

Commit 1aedf63

Browse files
committed
Use -Xkind-projector when scala version >= 3.5.0
kind-project and other has lifted from experiment to stabilized in: scala/scala3#20199
1 parent 9f6204e commit 1aedf63

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ private[scalacoptions] trait ScalacOptions {
440440
/** Advanced options (-X)
441441
*/
442442
val advancedOptions: Set[ScalacOption] = ListSet(
443-
lint
443+
lint,
444+
advancedKindProjector
444445
) ++ lintOptions
445446

446447
/** Private options (-Y)
@@ -468,7 +469,10 @@ private[scalacoptions] trait ScalacOptions {
468469
* syntax.
469470
*/
470471
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)
472476

473477
/** Enables safe initialization check. More info:
474478
* [[https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html]]

0 commit comments

Comments
 (0)