File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ object ScalaSettingsProperties:
10
10
private lazy val minTargetVersion = classfileVersionMap.keysIterator.min
11
11
private lazy val maxTargetVersion = classfileVersionMap.keysIterator.max
12
12
13
+ private val minReleaseVersion = 17
14
+
13
15
def supportedTargetVersions : List [String ] =
14
16
(minTargetVersion to maxTargetVersion).toList.map(_.toString)
15
17
16
18
def supportedReleaseVersions : List [String ] =
17
19
if scala.util.Properties .isJavaAtLeast(" 9" ) then
18
20
val jdkVersion = JDK9Reflectors .runtimeVersionMajor(JDK9Reflectors .runtimeVersion()).intValue()
19
21
val maxVersion = Math .min(jdkVersion, maxTargetVersion)
20
- (minTargetVersion to maxVersion).toList.map(_.toString)
21
- else List (minTargetVersion ).map(_.toString)
22
+ (minReleaseVersion to maxVersion).toList.map(_.toString)
23
+ else List (minReleaseVersion ).map(_.toString)
22
24
23
25
def supportedScalaReleaseVersions : List [String ] =
24
26
ScalaRelease .values.toList.map(_.show)
You can’t perform that action at this time.
0 commit comments