File tree 4 files changed +12
-3
lines changed
src/compiler/scala/tools/nsc
test/junit/scala/tools/nsc/settings 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -140,5 +140,5 @@ object ScalaOptionParser {
140
140
private def scaladocPathSettingNames = List (" -doc-root-content" , " -diagrams-dot-path" )
141
141
private def scaladocMultiStringSettingNames = List (" -doc-external-doc" )
142
142
143
- private val targetSettingNames = (8 to 12 ).map(_.toString).flatMap(v => v :: s " jvm-1. $v" :: s " jvm- $v" :: s " 1. $v" :: Nil ).toList
143
+ private val targetSettingNames = (8 to 16 ).map(_.toString).flatMap(v => v :: s " jvm-1. $v" :: s " jvm- $v" :: s " 1. $v" :: Nil ).toList
144
144
}
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ abstract class BackendUtils extends PerRunInit {
76
76
case " 10" => asm.Opcodes .V10
77
77
case " 11" => asm.Opcodes .V11
78
78
case " 12" => asm.Opcodes .V12
79
+ case " 13" => asm.Opcodes .V13
80
+ case " 14" => asm.Opcodes .V14
81
+ case " 15" => asm.Opcodes .V15
82
+ case " 16" => asm.Opcodes .V16
79
83
// to be continued...
80
84
})
81
85
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ trait StandardScalaSettings { _: MutableSettings =>
73
73
object StandardScalaSettings {
74
74
// not final in case some separately compiled client code wanted to depend on updated values
75
75
val MinTargetVersion = 8
76
- val MaxTargetVersion = 12 // this one goes to twelve
76
+ val MaxTargetVersion = 16
77
77
78
78
private val AllTargetVersions = (MinTargetVersion to MaxTargetVersion ).map(_.toString).to(List )
79
79
}
Original file line number Diff line number Diff line change @@ -57,8 +57,13 @@ class TargetTest {
57
57
check(" -target:jvm-12" , " 12" )
58
58
check(" -target:12" , " 12" )
59
59
60
+ // (scene missing)
61
+
62
+ check(" -target:jvm-16" , " 16" )
63
+ check(" -target:16" , " 16" )
64
+
60
65
checkFail(" -target:jvm-6" ) // no longer
61
- checkFail(" -target:jvm-13 " ) // not yet...
66
+ checkFail(" -target:jvm-17 " ) // not yet...
62
67
checkFail(" -target:jvm-3000" ) // not in our lifetime
63
68
checkFail(" -target:msil" ) // really?
64
69
You can’t perform that action at this time.
0 commit comments