Skip to content

Commit f189b3f

Browse files
author
Arturs Sengilejevs
committed
Consider minTargetVersion as always supported
1 parent 4382930 commit f189b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object ScalaSettings:
2424
val jdkVersion = JDK9Reflectors.runtimeVersionMajor(JDK9Reflectors.runtimeVersion()).intValue()
2525
val maxVersion = Math.min(jdkVersion, maxTargetVersion)
2626
(minTargetVersion to maxVersion).toList.map(_.toString)
27-
else List()
27+
else List(minTargetVersion).map(_.toString)
2828

2929
def defaultClasspath: String = sys.env.getOrElse("CLASSPATH", ".")
3030

0 commit comments

Comments
 (0)