Update CLI tests

This commit is contained in:
Mikhael Bogdanov
2021-07-15 06:27:14 +02:00
parent 1187e786f4
commit 7854e9c3d7
70 changed files with 117 additions and 188 deletions
-8
View File
@@ -1,8 +0,0 @@
$TESTDATA_DIR$/simple2js.kt
-Xir-produce-js
-language-version
1.4
-api-version
1.3
-output
$TEMP_DIR$/out.js
-3
View File
@@ -1,3 +0,0 @@
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
error: IR backend cannot be used with language or API version below 1.4
COMPILATION_ERROR
@@ -1,6 +0,0 @@
$TESTDATA_DIR$/simple2js.kt
-Xir-produce-js
-language-version
1.3
-output
$TEMP_DIR$/out.js
@@ -1,3 +0,0 @@
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
error: IR backend cannot be used with language or API version below 1.4
COMPILATION_ERROR
+1 -1
View File
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/languageVersion.kt
-output
$TEMP_DIR$/out.js
-language-version
1.3
1.4
+2 -7
View File
@@ -1,9 +1,4 @@
package test
fun test() {
while (true) {
when {
true -> break
}
}
}
sealed interface Polygon
+4 -4
View File
@@ -1,5 +1,5 @@
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
compiler/testData/cli/js/languageVersion.kt:6:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
true -> break
^
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
compiler/testData/cli/js/languageVersion.kt:3:1: error: the feature "sealed interfaces" is only available since language version 1.5
sealed interface Polygon
^
COMPILATION_ERROR